-
Hi there, I notice that most of the examples have a single top level Model with a single set of Messages. How would a reusable component (e.g. a text element) notify its parent or app about a change (e.g. the input changing)? For example, how would the Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hello @yatesco, Incidentally, I'm still working on this reusable components for the past few weeks. An accompanying project sfui is using heavily using re-usability feature to create interactive If you are interested, feel free to play with these, however be warned that this are highly experimental and can radically change from time to time. |
Beta Was this translation helpful? Give feedback.
Hello @yatesco,
Incidentally, I'm still working on this reusable components for the past few weeks.
However, I haven't really polish the design to make it more ergonomic for the users. I'm still torn on whether to stick with The Elm architecture or use web-components(a.k.a custom elements) that is natively supported by the browser or both. Now, that you have an inquiry about it, I just push it to the resuable-components branch.
An accompanying project sfui is using heavily using re-usability feature to create interactive
Components
andContainers
which can have its own set of behaviors that the parents component don't have to know about, but only care about plugging callbacks into the chi…