Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
You can’t perform that action at this time.