Skip to content

Instantly share code, notes, and snippets.

@RichardBray
Created April 3, 2020 16:42
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 RichardBray/e8213d44fe6f8f690a3148eb6b2a5296 to your computer and use it in GitHub Desktop.
Save RichardBray/e8213d44fe6f8f690a3148eb6b2a5296 to your computer and use it in GitHub Desktop.
// AppContext.js
import { createContext, useContext } from "react";
export const Store = createContext();
export const useAppContext = () => useContext(Store);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment