Reactjs – How to use createContext with a hook
So in React, the rules of hooks says that hooks cannot be called outside of functional components. My predicament: I need to initialize state in my createContext using a hook for the SchedulesProvider. The state is a dynamic date, like…