DEV Community

Discussion on: Why React projects still use Redux

Collapse
 
urielbitton profile image
Uriel Bitton

Context API. I see the trend going towards Context lately so i'm putting more effort in going that way than staying with Redux which may dissappear in a year.

Collapse
 
alexandrudanpop profile image
Alexandru-Dan Pop • Edited

Context API + useReducer hooks would be good enough for many situations:

  • easier to set up
  • no need to understand any extra libraries
  • no extra libs to clutter the bundle size
Collapse
 
wobsoriano profile image
Robert

"may disappear in a year"

That's not happening

Collapse
 
markerikson profile image
Mark Erikson

Definitely not happening any time soon :)

Collapse
 
urielbitton profile image
Uriel Bitton

Maybe not but context api might do the same thing to redux that react did to jquery.

Thread Thread
 
kornfleks profile image
Alexandre Nicolas

It will not, as mentioned in the top comment, context API has not the same purpose as Redux.
If you doesn't use middleware, you surely don't really need to use Redux.