Last active
September 28, 2019 20:05
-
-
Save mitchgollub/581256677bd1817b87c244b027baaa5e to your computer and use it in GitHub Desktop.
React High Order Components 5
This file contains 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 enhance = compose( | |
flattenProp('user'), | |
renameProp('username', 'name') | |
); | |
// Combine HOC's (from Recompose or custom) with compose | |
const EnhancedProfile = enhance(Profile); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment