Last active
April 8, 2018 02:28
-
-
Save idmontie/702b2247950d7cdd4dd0a92c6fe05d6c 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
const tween = ({ tween, duration = 1000, defaultStart, end }) => (BaseComponent) => { | |
return class Tween extends Component { | |
// ... | |
render() { | |
const { current } = this.state; | |
return <BaseComponent {...this.props} current={current} /> | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment