Created
January 26, 2017 20:47
-
-
Save franleplant/b7311a14d7ea2f7ee4117f9f05331508 to your computer and use it in GitHub Desktop.
HOC dont remove
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
function toClass(Component) { | |
return ClassWrapper extends React.Component { | |
render() { | |
return <Component {...this.props} /> | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment