Last active
June 15, 2018 14:14
-
-
Save thehappybug/2186693b839012977cdd08496b267048 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
import * as React from 'react'; | |
interface AppContextInterface { | |
name: string, | |
author: string, | |
url: string | |
} | |
const {Provider, Consumer} = React.createContext<AppContextInterface | null>(null); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment