|
|
|
|
|
by acemarke
1508 days ago
|
|
Because Redux and Context are different tools that solve different problems, with some overlap. Context is a Dependency Injection tool for a single value. Note that it doesn't "manage" or "store" anything - it's just a tube that you can pass something through. Any actual "storage" is normally done with React's own `useState/useReducer` hooks, which actually _do_ store and update values. Redux, meanwhile, is a tool for predictable state management outside React. Very different kind of tool, for a different purpose. More details: https://blog.isquaredsoftware.com/2021/01/context-redux-diff... |
|