Skip to content

Instantly share code, notes, and snippets.

@bySabi
Created May 6, 2016 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bySabi/a4f5999693d5e1ebfa86a7a7987afc05 to your computer and use it in GitHub Desktop.
Save bySabi/a4f5999693d5e1ebfa86a7a7987afc05 to your computer and use it in GitHub Desktop.
Minimal higher order React Component
```
const hoc = C => class _hoc extends React.Component {
render() {
return <C { ...this.props }/>;
}
}
const hoc = C => function _hoc(props) {
return <C { ...props }/>;
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment