The idea of React is good - declarative, stateful, reusable components, etc. While the bloat of React and it's toolchain (and npm plugins) has become a mess. When you have 2^100 different plugin combos to do something, you have 2^100 imperfect solutions and no experts in any of them, rather than one elegant and simple standard that can be optimized.<p>This repo is great proof that React is over engineered. Vanilla JS has WebComponents[1] and Templates, and a vDOM is easy to support (it existed long before React) and the DOM was the original place to store state in custom properties that you could manipulate internally with 'this'. What's missing is the ecosystem of Reusable WebComponents (primatives) based around this simple approach.<p>That's why this is so great to see. As more of a purist, I would try to make this a Vanilla JS lib instead of TS and remove one more build step. But the idea of 60 lines of code that use primatives (thus making this hyper extendable) is perfect.<p>[1] <a href="https://developer.mozilla.org/en-US/docs/Web/Web_Components" rel="nofollow">https://developer.mozilla.org/en-US/docs/Web/Web_Components</a>
It's weird how in the JS community rewrites of react are common in the CLJS community using React as a runtime is more common:<p><pre><code> - https://reagent-project.github.io/
- https://github.com/day8/re-frame
- https://github.com/tonsky/rum
</code></pre>
And my favourite
- <a href="https://github.com/fulcrologic/fulcro" rel="nofollow">https://github.com/fulcrologic/fulcro</a><p>Hosting your work on top of another ecosystem, such that you can still use the underlying ecosystem, gives you a lot of leverage out the gate
But does this actually have "reactivity"? If I was to update variable, would that state propagate to all its dependants in the DOM automatically?
What in the JS ecosystem promotes such posts and up-votes them to first page? These 50line / 100x faster micro frameworks 'never' reach 1% in core functionality and aren't usable beyond building 10 lines of demo app.<p>I don't see similar posts for Java/.Net/Go ecosystem. Spring in 500 lines or 100x faster ASP.net!!