-
-
Save bitfishxyz/487194e27a65244a5bd82d5593621820 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
import React from 'react'; | |
const yellowHOC = WrapperComponent => { | |
return class extends React.Component { | |
render() { | |
<div style={{ backgroundColor: 'yellow' }}> | |
<WrapperComponent {...this.props} /> | |
</div>; | |
} | |
}; | |
}; | |
export default yellowHOC; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment