I understand Redux adds global states to plain ReactJS, but you can do the same with React ContextAPI. So why use Redux (instead of the ContextApi)?
Asked
Active
Viewed 56 times
-1
-
Context is not suited for real global state, but more of a dependency injection mechanism - it doesn't offer a way to granularly subscribe. https://blog.isquaredsoftware.com/2021/01/context-redux-differences/ – phry Jan 20 '22 at 10:58
1 Answers
1
They both are the same ... But Redux was exists first.
Context API was introduce as a solution to React prop drilling in React version 16.3.
That's it

Zaid abu khalaf
- 776
- 8
- 15