Re:State of JavaScript 2019
by tomduncalf on Thursday December 19, 2019 @05:46AM
(#21833719)
FWIW, MobX lets you mutate state in the same way. It does require you to make use of its observer/observable functions to make things reactive, but in general it works amazingly well. I strongly urge everyone to try it!
[ Parent
| on HN ]
Agreed. I feel so weird seeing everyone messing around with hooks while all the time I've been using what feels to me like a much simpler better solution.
If you know React, look at the "Ten minute introduction to MobX and React" to see if it's for you. https://mobx.js.org/getting-started.html
MobX is great. It's even better when you remove the virtual dom and rely only in its internal dependency tracking:
Re:State of JavaScript 2019
by tomduncalf on Saturday December 21, 2019 @07:55AM
(#21851025)
Huh, interesting! I’ll have to try this out, thanks