Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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!


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:

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


Huh, interesting! I’ll have to try this out, thanks




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: