Replies: 1 comment 3 replies
-
Some ideas related to sharing data between nested components and changing state of parent or sibling components, highlighted in #265
I would propose Parent to child already works with the existing template tag kwargs for the parent to share some properties/state which the child can read but not directly change. We could make it more convenient to access these (e.g. in templates) without having to set a property for each kwarg in the child component. Child to parent communication is facilitated by passing a method from the parent to the child through a kwarg also. This is the same principle as how React does it (where props are pretty much like our kwargs) and it works really well. This implementation could have something like a |
Beta Was this translation helpful? Give feedback.
-
Test for how well more than 2 layers of nesting works for components. There might be some edge cases that need to be figured out to make it work correctly.
Beta Was this translation helpful? Give feedback.
All reactions