with affinity you can make multiple apps (components eventually) and store (ala redux) - while a store can be shared through apps.
This started as a case study and as a small reusable code for creating self contained dom elements with functionality - during the time of development, ideas and inspiration came from angular, react and vuejs.
suggestions and feedback is mostly welcomed.
The interesting challenges were finding ways for these topics:
- create a component lib using dom and js only, without any 3rd party .
- producing semantic html in dom .
- allow template micro syntax (using @click to bind an event listener) .
- allow reusing custom elements within a component's template .
- creating a simple store interface and auto connect it with
a component to allow re render whenever the store changes .
any feedback and suggestions are welcomed
Have you explored the mithril.js [1] project? It seems to have reasonably similar goals, although the templating is pretty different from how you implemented it. Mithril doesn't have a concept of state, which also sets it apart from your project, but it seems to handle re-rendering just fine without it.
[1] https://mithril.js.org/