These are chat archives for jdubray/sam
innerself is inspired by React and Redux. It offers the following familiar concepts:
a single store,
a dispatch function,
and even an optional logging middleware for debugging!
It does all of this by serializing your component tree to a string and assigning it to innerHTML of a root element. It even imitates Virtual DOM diffing by comparing last known output of components with the new one :) I know this sounds like I'm crazy but it actually works quite nice for small and simple UIs.
If you don't care about size constraints, innerself might not be for you. Real frameworks like React have much more to offer, don’t sacrifice safety, accessibility, nor performance, and you probably won’t notice their size footprint.
innerself was a fun weekend project for me. Let me know what you think!