-
-
Save rt2zz/4daeead9827d0d59ced0b1bcd37e6093 to your computer and use it in GitHub Desktop.
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
let scrollEnhanced = (Inner) => { | |
return class ScrollEnhanced extends Component { | |
render () { | |
return <Inner {...this.props} {...scrollEnhancedStuff} /> | |
} | |
} | |
} | |
// ... later | |
let Something = scrollEnhanced(Foo) | |
let something = <Something {...someProps}> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment