Skip to content

Instantly share code, notes, and snippets.

@idmontie
Created April 7, 2018 01:15
Show Gist options
  • Save idmontie/2df06e95b04af46ccebef10248c94f3a to your computer and use it in GitHub Desktop.
Save idmontie/2df06e95b04af46ccebef10248c94f3a to your computer and use it in GitHub Desktop.
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