Re
Re
Repetition.
export const MyContext = createContext(defaultValue).
useContext(MyContext)
Hook to read it in any child component, no matter how deep.<MyContext.Provider value={...}>
to provide it from a prent.children
.TasksProvider
that provides context.useTasks
, useTasksDispatch
to read it.