3 ms·
Another interesting datapoint: Every time I try out something other than React (Vue, Svelte, etc), I have to learn some new syntax, understand the runtime magi
by colonelspace 2y ago
Another interesting datapoint:
Every time I try out something other than React (Vue, Svelte, etc), I have to learn some new syntax, understand the runtime magic, and add a syntax/LSP to my editor. But React is just JS/TS, which is straightforward.
Being disappointed by a library/framework because your LLM of choice can't produce decent code doesn't really tell me very much about the library, other than it's usage is varied.
- recursive 2y agoThe difficulty with react generally isn't the syntax. It's the constraints of hooks and reconciliation. Since mutation is always disallowed (but not by mechanical constraints) data changes are harder to express. You have to remember to keep your effect dependency list synchronized even though the linter can tell you when it's wrong. State continuity depends on the heuristics of the reconciler considering this component instance (and all its parents) to be some particular component instance from a previous render function output. The syntax is maybe the only good part of react. And I still think the way it uses JSX is not great. Conditionals and .map seem... weird. But yes, judged from syntax only, react is ok.