DEV Community 👩‍💻👨‍💻

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

wizhippo profile image
Douglas Hammond

How would this apply to multiple roots? For example converting a legacy application to use react where your components may not all reside under a single root. I believe this is where a store based on react context cannot emulate a redux store.

rohanfaiyazkhan profile image
Rohan Faiyaz Khan Author

I'm sorry but I don't quite understand your question. Every React app has a single root even if you have routing involved.