Last active
March 23, 2018 17:34
-
-
Save johnloven/a17965a2f25db037368100a6be10d3ea 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
@injectText | |
class MyPage extends React.Component { | |
render() { | |
console.log(this.props.text); // Will write "This text is from the HOC!" to console. | |
return <SomeContent/>; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment