Created
December 1, 2018 01:35
-
-
Save Jahans3/beaa9d7824f7c5de0c550597abf79392 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
const StateContent = createContext(); | |
export function useStore () { | |
const { state, dispatch } = useContext(StateContext); | |
return [state, dispatch]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment