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.
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.
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.