You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of <URLProvider.Consumer> we should use <URLContext.Consumer>
And also while wrapping inside consumer, context as property being passed to Menu component should be equal to 'context' which is the param of render Prop.
//create a react context
const URLContext = React.createContext();
//create a provider for the urlcontext
I created a HOC component
The text was updated successfully, but these errors were encountered: