Skip to content

Instantly share code, notes, and snippets.

@jamiehaywood
Last active November 22, 2020 22:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamiehaywood/66cf722bf46fcdddd1ba89fd8c3541d7 to your computer and use it in GitHub Desktop.
Save jamiehaywood/66cf722bf46fcdddd1ba89fd8c3541d7 to your computer and use it in GitHub Desktop.
const GlobalStateContext = createContext({
state: {} as Partial<GlobalStateInterface>,
setState: {} as Dispatch<SetStateAction<Partial<GlobalStateInterface>>>,
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment