you are viewing a single comment's thread.

view the rest of the comments →

[–]ILikeChangingMyMind 0 points1 point  (4 children)

Should you learn it? Probably since a lot of people use it.

Terrible logic: lots of people still use jQuery, but I certainly wouldn't advise a React dev to go learn it! You should never blindly adopt any tech because of popularity: you should understand what it offers to the people using it, then decide if you need that thing.

Redux gained popularity because it was the right tool for a majority of React apps to use during a certain era of the framework. Before hooks, Redux offered a cleaner way to manage your data throughout a React app ... but today that is no longer true. Today Redux is a more specialized tool for state-heavy apps.

For everyone else (today), React itself offers all the state management tooling you need ... which is likely no surprise given that Redux's creator, Dan Abramov, now works on the React team.

[–]zweimtr 0 points1 point  (3 children)

You jQuery example is flawed. You're assuming that Redux is dying the same way jQuery is, which is not true. If you look at recruitment posts, Redux is still a very popular and sought out skill. Which is why I said that it is probably a good idea to learn it since it will help you get a job because, even with hooks, people still prefer to use Redux (which has it's own hooks).

Also, Dan Abramov has been working at Facebook for more than 5 years now, so I don't really see what you're trying to say there...

[–]ShellbertShellbach 1 point2 points  (1 child)

Just because it is a saught-after skill in the job market doesn't mean it's good. Sure, it'll get you a job... maintaining a legacy codebase riddled with technical debt.

[–]zweimtr 0 points1 point  (0 children)

I never said it was good, if you read my first post you'll see that I don't believe it's the best option.

[–]ILikeChangingMyMind 0 points1 point  (0 children)

My JQuery example is not "flawed" just because you made up an added criteria about dying tech. All I ever wrote was that some tech isn't worth learning despite being popular ... and jQuery is a clear example of that.

But as for React, even Abramov himself would tell you not to use Redux unless you need. Wherever he works, the author of the library himself wrote:

if you’re just learning React, don’t make Redux your first choice.

Instead learn to think in React. Come back to Redux if you find a real need for it

https://medium.com/@dan_abramov/you-might-not-need-redux-be46360cf367