Created
April 3, 2020 16:42
-
-
Save RichardBray/e8213d44fe6f8f690a3148eb6b2a5296 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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