Skip to content

Instantly share code, notes, and snippets.

@slashpot
Created August 10, 2020 14:08
Show Gist options
  • Save slashpot/08694d4be517524c25d0a2c85d052228 to your computer and use it in GitHub Desktop.
Save slashpot/08694d4be517524c25d0a2c85d052228 to your computer and use it in GitHub Desktop.
import React from 'react';
export const CounterContext = React.createContext({
count: 0
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment