Created
July 18, 2019 11:06
-
-
Save ntheanh201/beecd9202dd9423087d9c1d4dc29b567 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
class App extends React.Component { | |
static contextType = Context | |
constructor(props, context) { | |
super(props, context) | |
// this.context now works | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment