3 ms·
> Most state in React isn't exposed because it's managed by the OOP DOM. Scroll positions, focus, press state of buttons, cached bitmaps, autofill state, lists
by lmm 3y ago
> Most state in React isn't exposed because it's managed by the OOP DOM. Scroll positions, focus, press state of buttons, cached bitmaps, autofill state, lists of event handlers etc.
For someone writing stuff in React all that is effectively the "runtime", and whether it's being managed in OOP, FP, or some other fashion is an implementation detail. (You don't e.g. subclass DOM classes when writing React).
> The combination of the React concept with static typing doesn't mix well at all.
Hasn't been my experience at all, shrug, my main job does a lot of stuff with React in Scala.js and it works very well.