Created
September 26, 2019 10:14
-
-
Save Palatnyi/ef970d2716d5827a2b9ec4c425141928 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
class Store extends Component { | |
/* | |
a lot of methods here | |
*/ | |
render() { | |
const updaters = {/*methods what*/}; | |
const data = {/* this.state*/}; | |
const value = { | |
data, updaters | |
} | |
return ( | |
<AppContext.Provider value={value}> | |
{this.props.children} | |
</AppContext.Provider> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment