DEV Community

Discussion on: Sharing state like Redux with React's Context API

Collapse
 
rohanfaiyazkhan profile image
Rohan Faiyaz Khan

You mean as opposed to having a singular application wide store?

Well Context API has better performance when split up into more modular contexts. Whether that is the right approach for an application is more of a difficult question. I guess it depends on the team's mindset, but I personally prefer a single redux store for large projects due to it being more flexible.

Collapse
 
omrisama profile image
Omri Gabay

Oh yeah, a single Redux store is definitely easier to grok from a mental model perspective. Thanks for sharing.