DEV Community

Discussion on: Redux vs Context API: When to use them

Collapse
 
niche_nt profile image
Nishant Tilve

Also, if you need to maintain some sort of complex state for any mid-level project, you can still create your own reducer using React's Context API itself, before reaching out for redux and adding external dependencies to your project initially.

Collapse
 
kayeeec profile image
Kayeeec • Edited

But you might take a performance hit. Redux seems to be better performance-wise when you intend to update the shared data a lot - see stackoverflow.com/a/66972857/7677851.

If used correctly that is.