Skip to content

Instantly share code, notes, and snippets.

@johnloven
Last active March 23, 2018 17:24
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 johnloven/7576cd6eb9a42f657165417fff50fde1 to your computer and use it in GitHub Desktop.
Save johnloven/7576cd6eb9a42f657165417fff50fde1 to your computer and use it in GitHub Desktop.
const doNothing = WrappedComponent =>
class DoNothing extends React.Component {
render() {
return <WrappedComponent {...this.props}/>
}
};
export default doNothing;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment