DEV Community

Discussion on: Using the React Context API, the right way (a time saver)

Collapse
 
ncpa0cpl profile image
ncpa0cpl

You are correct, except Context Provider does not allow to have access to that data anywhere. It's only within React Components that are descendants of that Provider.

What's most important Context does not give any option to access it's data outside the React tree (Redux and other State Management library do)

Thread Thread
 
hyggedev profile image
Chris Hansen

Ahh okay gotcha. Perfectly said, I get it now. Thanks! 👌