Redux, without saying, is the most popular state management library for React. But sometimes it comes off as intimidating to beginners, well for m...
For further actions, you may consider blocking this person and/or reporting abuse
Hi, I'm a Redux maintainer. A few quick thoughts:
First, I've written articles and discussed when and why it makes sense to use Redux, as well as how Redux compares to various other tools and options:
Second, "modern Redux" is considerably different than the Redux code people might have seen in the past. In particular, we now teach people to use our official Redux Toolkit package as the standard approach for writing Redux logic. It includes utilities to simplify several common Redux use cases, including store setup, defining reducers, immutable update logic, and even creating entire "slices" of state at once:
redux-toolkit.js.org
The React-Redux hooks API also makes it easier to use Redux in their React components.
Finally, we've added a "Redux Essentials" tutorial in our core docs, which teaches beginners "how to use Redux, the right way", using our latest recommended tools and practices like RTK and the React-Redux hooks:
redux.js.org/tutorials/essentials/...
I've also just published a new "Redux Fundamentals" tutorial that teaches "how Redux works, from the ground up". That tutorial is now live:
redux.js.org/tutorials/fundamental...
I am honored to have a redux maintainer here. Thanks a lot for your input!
In my opinion if youβre going to use Redux use a Redux library that reduces Reduxes boilerplate. Redux by itself has a ton of boilerplate and looks intimidating. Checkout easy-peasy.now.sh/ its amazing. Works with Redux dev tools too.
RTK - redux toolkit - will also reduce some of the boilerplate.
Never heard of that. I will defo check it out. Thanks!
Nice article! I like the points mentioned here. I also wrote about this not long ago.
Why React projects still use Redux
Alexandru-Dan Pop γ» Aug 8 γ» 4 min read
That's one dope article! Well written.
Thanks!
Thank you for the great article. To me Redux was also a kind of pain in the ass, but I fought for it. I guess the hard part to teach/learn it, that you only see the benefit of Redux in case of a complex architecture, but you learn it always on easy projects. So I was also sceptical about it, why is it good to use? The point is that this is an important topic, looking forward to seeing your tutorial. π
I am glad you liked it.
I know Redux...But using Recoil for small project.