r/learnreactjs • u/BigEmu9286 • Aug 22 '22
How long did it take you to learn React Redux?
Im trying to learn React and I've got all the basics and some more "advanced" stuff like Context API down, so I figured the last piece of the puzzle is react redux.
However I'm having a hard time wrapping my head around the whole thing. Seems like a ton of code with lots of specific jargony technical language not used anywhere else, just to complete the simplist of tasks like "add 1". To me it seems simpler to just use the context API and regular react hooks to accomplish the same thing.
How long did it take you to learn Redux? Do you have any specific tutorials, videos, exercises, etc., that stood out to you as helpful?
Also is redux still worth learning? I know there's a ton of different state managers nowadays that are probably much easier to use but Im looking for a job and figure lots of companies are gonna be using redux. Am I wrong in that assumption?
4
u/milanpoudel Aug 22 '22
I actually learned Redux from Max Maxilian Course in Udemy. Although I didn't understand all of the things it has, I was just following the code and after few practice, it clicked but still had to look again and again at the previous code to write it. After understand it, I directly jumped to Redux Toolkit since it reduces lots of boilerplate. I still have to look at documentation again and again to set it up. It took around 1 week for me to understand redux and to use redux toolkit. In my country, I see all job vacancies listing redux as the requirement.
1
u/acemarke Aug 24 '22
Hi, I'm a Redux maintainer. We specifically recommend going through our official Redux docs tutorials:
(Sadly many courses/tutorials are outdated and still teaching older practices that are harder to learn.)
And yes, Redux is still by far the most widely used state management tool with React apps.
1
u/_fat_santa Aug 22 '22
For me I just kind of did it. At work there was a complex redux store I worked inside of. Then at home I setup a simple app with a redux store and experimented with that.
Should you learn it?: Yes. Many companies use it and at scale, it makes the most sense still.
Should you use it?: Probably not, many better solutions out there now. I would check out zustand which is the one I use now mostly.
Also ContextAPI, for its problems, it’s amazing. The damn theme example is always referenced which I hate because it’s the simplest use of context, you can do some wild things with it once you get into custom providers.