Skip to content
#

jsx

Here are 4,174 public repositories matching this topic...

yew
Madoshakalaka
Madoshakalaka commented Nov 25, 2021

This is about:

  • Other (Important Tips)

Component communication might deserve a dedicated page.

Ancestor -> Descendant

straightforward: passing props. Using a context if the descendants can be too deep down the tree.

Descedant -> Ancestor

This is not very obvious. In fact, two people asked the same question on Discord in one day. And personally, I had no clue either despite h

solid
Fordi
Fordi commented Oct 22, 2020

For the most part this just works, but functions within tagged markup get weird indent assertions, e.g.,

        ${collection.map((item) => {
          const { prop1, prop2 } = workWith(item);  // eslint: expected indentation of 4 but found 10 (indent)
          return html`  // eslint: expected indentation of 4 but found 10 (indent)
            <${Widget} prop1=${prop1} prop2=${prop2} />
enhancement good first issue
eliotsykes
eliotsykes commented Oct 3, 2019

I'm sorry to post an issue that is missing crucial evidence, but some debugging of a recent config loading bug makes me suspect that the react-rails railtie.rb may be modifying the load order of initializers, and preventing the values in Rails.application.config being as expected.

Whether this happens or not appears to be partly dependent on where in the Gemfile the react-rails gem is l

mitosis
samijaber
samijaber commented Mar 22, 2022

We are currently using Node v14, npm v7 and Lerna v3.

We've wanted to upgrade to yarn3 but encountered some issues.

Whoever grabs this needs to make sure all the following works:

  • locally, running yarn run build/yarn run start in every sub-package should work without issues (we had problems running yarn run build in packages/core)
  • CI should pass

This task might be related to

enhancement good first issue help wanted
brainkim
brainkim commented Jan 5, 2021

We should be able to use dispatchEvent to define callback prop based onevent APIs, so we don’t have to deal with capturing/bubbling for specific events.

function MyComponent({id}) {
  const onclick = () => {
    this.dispatchEvent(new CustomEvent("customclick", {detail: {id}}));
  };
  
  return (
    /* children */
  );
}

// Usage

<MyComponent oncustomclick={(e
enhancement good first issue

Improve this page

Add a description, image, and links to the jsx topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the jsx topic, visit your repo's landing page and select "manage topics."

Learn more