I have used Redux for some time and have not been that happy with how it is being used with React or other frameworks. I have been looking at RxJS and want to start a discussion around that. Do you have any thoughts on the pros and cons of Redux vs RxJS? I found that RxJS has a better implementation that can scale far better than the one used by Redux although they both are part of the reactive programming movement.
Its an to comparison. Redux is a state library while RxJS is an async API built around observables. Neither really replaces the other. If you’re looking for an alternative to Redux, something like MobX would be a better comparison.
I know that Redux is a state library and RxJS is a reactive way of doing async. Im not a fan of how Redux is being implemented and want a better reactive way of doing this. Some people have even written their own Redux store with just RxJS and a reducer that saves one store (object). The only disadvantage here is that the store used in RxJS is not immutable like the Redux Store.
I hate that you have to use connect and HOC with Redux and want to have a simpler way of doing the setup.
With hooks (see React Hooks) you won’t have connect and have an hoc anymore. Not sure if something like that would appeal to you more?
I personally like the ideas behind react and redux, but I agree they’re not great to work with right now. They’re close, and while I like the ideas behind hooks and what they accomplish, it’s also not exactly what I had imagined as the evolution of things here. We’ll see I guess
I’d be interested in what you think of hooks. They’re weird, I know. But I think the visualization I posted in the thread I linked above kinds shows some of their benefits. And the talk is worth going through too.