4 ms·
What about nesting views? And communication between views? Web components seem much more promising for the very reason that we shouldn't have to reinvent an ev
by dreamdu5t 13y ago
What about nesting views? And communication between views?
Web components seem much more promising for the very reason that we shouldn't have to reinvent an event bus when we already have an evented DOM.
- anthonyshort 13y agohttps://github.com/ripplejs/ripple/tree/master/docs/composing https://github.com/ripplejs/ripple/tree/master/docs/composin... Yep, you can nest views in a similar way to React. It's not exactly the same, but it's similar. Data is kept in sync and components are re-usable. Communication between views is either through events, passing in callbacks, the dispatch plugin (uses custom DOM events and bubbling like Flight). There are a few ways to do it depending on the problem. Views have references to their children and the owner too.