Last active
June 19, 2018 20:36
-
-
Save ernestofreyreg/783ec94e692eda3f5c2a72ad73ecabed 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 Connected extends React.PureComponent { | |
constructor (props, context) { | |
super(props, context) | |
this.blah = createNewBlah() | |
} | |
componentWillWhatever() { | |
// Do anything here | |
} | |
render () { | |
return React.createElement(this.props.children, { blah: this.blah }) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment