3 ms·
Thanks for the detailed write up and comparisons. Also kudos for not bashing other frameworks and giving a level headed comparison. Two big things I noticed th
by nojvek 10y ago
Thanks for the detailed write up and comparisons. Also kudos for not bashing other frameworks and giving a level headed comparison.
Two big things I noticed that drove you away from react.
1) too many subcomponents:
I think jsx can be improved to have logic tags within them. E.g <js:for> and <js:if> tags that the transpiler can move to ternery and array map calls.
2) too much verbosity: something like mobx or deep-observable can help here.
Honestly react has become the Java of UI. Going back to fundamentals. All you need is a tiny library that diffs a vdom tree to real dom.
And you need a tiny library that allows you to observe a single source of truth object and connect it to view.update() changes.
All in all this shouldn't take more than 5kb of code.
We all want: good abstractions, fast performance, actionable errors and small library so the page loads in no time.