Created
April 7, 2018 01:15
-
-
Save idmontie/2df06e95b04af46ccebef10248c94f3a 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
class App extends Component { | |
render() { | |
return ( | |
<SimpleTween start={0} end={600}> | |
{({ current }) => ( | |
<Rectangle x={current} y={600} /> | |
)} | |
</SimpleTween> | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment