DEV Community

Ushahemba Shir
Ushahemba Shir

Posted on

Redux VS Context API

I am very familiar with Context API, I completed a crash course with Redux and they both appear alike (in principle) to me. The question is, which one should I focus on? What are the major Pros and Cons between Context API and Redux?. Which is best in React State management.

https://stackoverflow.com/questions/64046369/redux-vs-context-api

Top comments (1)

Collapse
 
pengeszikra profile image
Peter Vivo

I'm familiar with redux, redux-saga, but my main Cons is redux globalism. Now i just use useReducer, useSagaReducer without context API. That setup give ability to free lego my components together, because don't have global dependency.