If you're looking for something easier to use to help you manage state in your React apps look no further than Mobx. It's pretty incredible how stupid easy it is to use, it kind of feels like cheating.
https://stackshare.io/mobx
I've tried to use Redux a couple of times but I just spent way too much time in plumbing code. Code I really don't care about. To be frank this code looks terrible (no fault of the author):
const handlers = {
[CREATE_NOTE]: (state, action) => { ... },
// ... a thousand more of this
}
Not to mention, I never not once felt happy working with Redux. I'm all about developer UX and working with tools that feel nice to use.
With Mobx you just declare a variable as Observable, then mark your components as Observers, and voila: You have crispy, no-plumbing reactivity.
In a way it kind of feels like Meteor where you save data on the database and it replicates everywhere it's being used.
https://stackshare.io/mobx
I've tried to use Redux a couple of times but I just spent way too much time in plumbing code. Code I really don't care about. To be frank this code looks terrible (no fault of the author):
Not to mention, I never not once felt happy working with Redux. I'm all about developer UX and working with tools that feel nice to use.With Mobx you just declare a variable as Observable, then mark your components as Observers, and voila: You have crispy, no-plumbing reactivity.
In a way it kind of feels like Meteor where you save data on the database and it replicates everywhere it's being used.