Is Redux still worth it after the introduction of React Hooks? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Is Redux still worth it after the introduction of React Hooks?

Hi guys, I've learned the basics of React and I'm planning to learn Redux. But after reading the concept of React Hooks, I'm wondering if I should just go full React and master hooks to manage a program global state. What do you think about it? Thanks 😇

17th Nov 2018, 10:56 PM
Grégoire Eugène
Grégoire Eugène - avatar
1 Answer
+ 2
I'll say go ahead and learn redux. As far as state management is concerned, 'you might not need redux' as Dan Abramov quoted. Context API and setState are very capable in most cases of applications. Redux really shines in very big applications with convoluted states. AFAIK Hooks doesn't affect redux. And can't replace it. However, Hooks in the long ran are going to replace React Class Components. And that's the future, functions are easier to work with than classes, because, they are composable, and easily passed around (functional programming) than classes which needs to be inherited, with constructor, 'this' management etc. Hope it helps, happy Coding.
26th Jan 2019, 12:44 AM
Benneth Yankey
Benneth Yankey - avatar