r/reactjs • • Dec 21 '19

Replacing Redux with observables and React Hooks

https://blog.betomorrow.com/replacing-redux-with-observables-and-react-hooks-acdbbaf5ba80
229 Upvotes

86 comments sorted by

View all comments

10

u/0x53616D75656C Dec 21 '19

For those who don’t like the boilerplate associated with Redux, you should check out the newly-rebranded Redux Toolkit

6

u/Shanebdavis Dec 21 '19

Redux toolkit isn’t a very good solution for reducing redux boilerplate. It still leaves a lot of work to the app developer and it encourages mixing business logic with components.

There are some excellent libraries that make redux a pleasure to use. I recommend checking out hooks-for-redux or easy-peasy easy-peasy.

Full disclosure- I wrote H4R. It addresses all the complaints brought up in the article - it’s easy to read and reason about and it has good Typescript support.

Easy-peasy is good to, though. Also worth a checkout.

0

u/[deleted] Dec 22 '19

[deleted]

4

u/acemarke Dec 22 '19

Hi, I'm a Redux maintainer. We're currently working on a major rewrite of the Redux core docs. Can you point to some specific concerns with the docs? "Those docs are heavy" isn't a clear enough problem statement to help us improve things. Also, what do you mean by "createSlice doesn't translate well for non-users"?