Created
March 23, 2018 17:29
-
-
Save johnloven/c5093fb31829895b46a28d09688fc7d0 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
const injectText = WrappedComponent => | |
class InjectText extends React.Component { | |
return <WrappedComponent text="This text is from the HOC!" {...this.props}/>; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment