News for hackers. Stuff that matters.
Re:Comparing Svelte and React by orangecat on Wednesday March 24, 2021 @08:35PM (#26575062)
And then there's Vue.js which essentially has MobX functionality built in. When you want to update the state, you just...update the state, which can be a plain JS object that knows nothing about the front-end framework. I've used it for several medium-size projects and haven't gotten close to needing anything like Redux or Vuex.
Re:Comparing Svelte and React by brundolf on Wednesday March 24, 2021 @09:35PM (#26575552)
Yeah, although when I played with Vue a couple years ago it seemed like it wasn't quite as powerful as MobX (particularly when you start stacking up a graph of computed values, or when you want to create side-effects of your own). But definitely a similar idea.
Re:Comparing Svelte and React by phaedryx on Thursday March 25, 2021 @12:41AM (#26576664)
I was a fan of MobX+React until I to a look a Vue when version 3 came out. Now I'm a Vue fan and what I was doing before feels like overkill.