DEV Community

loading...

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
ivanjeremic profile image
Ivan Jeremic Author

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

Forem Open with the Forem app