5 ms·
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 i
by tomduncalf 7y ago
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!
- Epskampie 7y agoAgreed. 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 https://mobx.js.org/getting-started.html
- pier25 7y agoMobX 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 https://github.com/ryansolid/mobx-jsx
- tomduncalf 7y agoHuh, interesting! I’ll have to try this out, thanks