DEV Community

Discussion on: Complex Custom Hooks with createContext();

Collapse
 
gorilazish profile image
Ignas

Little bit misleading as you still need to use Context.Provider (UseTaskProvider) inside index.js (or any other parent component)

Collapse
 
ivan_jrmc profile image
Ivan Jeremic

Yes I agree, this is an older post and a better title would be how to clean export and use the context.