News for hackers. Stuff that matters.
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!
Re:State of JavaScript 2019 by Epskampie on Thursday December 19, 2019 @11:37AM (#21836424)
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

Re:State of JavaScript 2019 by pier25 on Friday December 20, 2019 @09:49AM (#21844527)
MobX is great. It's even better when you remove the virtual dom and rely only in its internal dependency tracking:

https://github.com/ryansolid/mobx-jsx

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