Skip to content

Instantly share code, notes, and snippets.

@quisido
Created December 3, 2018 14:58
Show Gist options
  • Save quisido/7fd6ab3a8fe32637a7ca8a658912fb14 to your computer and use it in GitHub Desktop.
Save quisido/7fd6ab3a8fe32637a7ca8a658912fb14 to your computer and use it in GitHub Desktop.
Manage global state with React Hooks
const [ value, setValue ] = useState(DEFAULT_VALUE);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment