Skip to content

Instantly share code, notes, and snippets.

@Jahans3
Last active November 29, 2018 19:10
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 Jahans3/7a0eb78b10662597adec55d551d5ef38 to your computer and use it in GitHub Desktop.
Save Jahans3/7a0eb78b10662597adec55d551d5ef38 to your computer and use it in GitHub Desktop.
Creating a context
import { createContext } from 'react';
const { Provider, Consumer } = createContext();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment