Closed evanlarkin10 closed 2 years ago
I'm trying to wrap components of the screen's children with TourGuideZone, but I am getting context undefined. How can I pass the same TourGuideProvider context onto the children of the screen?
Ex: ` function App({ ...props }) { return (
); } `
function Child({ ...props }) { return ( <Grandchild {...props} /> ); }
` function Grandchild({ ...props }) { return (
Thanks
Edit- Resolved with proper wrapping of the TourGuideProvider
I'm trying to wrap components of the screen's children with TourGuideZone, but I am getting context undefined. How can I pass the same TourGuideProvider context onto the children of the screen?
Ex: ` function App({ ...props }) { return (
); } `
function Child({ ...props }) { return ( <Grandchild {...props} /> ); }
` function Grandchild({ ...props }) { return (
); } `
Thanks
Edit- Resolved with proper wrapping of the TourGuideProvider