Skip to content

Instantly share code, notes, and snippets.

@rt2zz
Created January 8, 2018 23:55
Show Gist options
  • Save rt2zz/4daeead9827d0d59ced0b1bcd37e6093 to your computer and use it in GitHub Desktop.
Save rt2zz/4daeead9827d0d59ced0b1bcd37e6093 to your computer and use it in GitHub Desktop.
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