Skip to content

Instantly share code, notes, and snippets.

@quisido
Created December 3, 2018 15:00
Show Gist options
  • Save quisido/8e9be559e2a51536bb9205770b0ffb09 to your computer and use it in GitHub Desktop.
Save quisido/8e9be559e2a51536bb9205770b0ffb09 to your computer and use it in GitHub Desktop.
Manage global state with React Hooks
import { setGlobal } from 'reactn';
setGlobal({
avatar: 'anonymous.png'
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment