+ 2
Discussion: Redux vs Context API
When we decide to use Redux or Context API? The general answer that I find is redux for large projects and context API for small projects
5 Réponses
+ 5
https://stackoverflow.com/questions/49568073/react-context-vs-react-redux-when-should-i-use-each-one
+ 5
Use redux whenever the app sharing states among the components.
Below is an example of redux which sharing state between 2 elements.
https://code.sololearn.com/W5E46XL5PvM2/?ref=app
+ 4
Context api is great for passing down data to deeply nested components, whereas redux can handle not only nested components, it handles state globally.
+ 1
Yeah but I believe context API does the same thing