4 ms·
React would have been great in a functional language with immediate data structures. Instead it’s used with JavaScript, where you have to constantly force your
by tobyhinloopen 4y ago
React would have been great in a functional language with immediate data structures.
Instead it’s used with JavaScript, where you have to constantly force yourself to create your prop objects in a very specific way to avoid or force (re)rendering.
It’s a constant struggle to control re-rendering. I still can’t believe React became as big as it is.
Vue and Angular just fit JavaScript better.
- fulafel 4y agoIt's very widely used in the ClojureScript world (via Reagent) where it indeed has a better impedance match.
- geokon 4y agoAnd sort of in Clojure with cljfx (React-like on JavaFX) https://github.com/cljfx/cljfx https://github.com/cljfx/cljfx
- tshaddox 4y agoIt’s quite nice in ReScript as well: https://rescript-lang.org/docs/react/latest/elements-and-jsx https://rescript-lang.org/docs/react/latest/elements-and-jsx
- mlajtos 4y ago> immediate data structures Immutable? But React in JS is a blessing – it brought good thinking to messy world. And as a direct influence, JS will adopt immutable data structures – tuples and records. https://github.com/tc39/proposal-record-tuple https://github.com/tc39/proposal-record-tuple
- Jasp3r 4y agoMobX is exactly what you're looking for: https://github.com/mobxjs/mobx https://github.com/mobxjs/mobx Vue works similar to React + MobX, but with weird design decisions like implicit reactivity, and a stale ecosystem thanks to the Vue2 vs Vue3 debacle.