DEV Community

Discussion on: Context in React

Collapse
 
stylecramper profile image
Matt Anderson

When you say, "So the Consumer has to be a ancestor of the Provider.", do you mean that the Consumer has to be a descendant of the Provider?

Collapse
 
kayis profile image
K • Edited

Yes, lol. Sorry, English isn't my first language. Fixed it :)