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
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
Context api is great for passing down data to deeply nested components, whereas redux can handle not only nested components, it handles state globally.
Yeah but I believe context API does the same thing