DefinitelyTyped/react-motion/react-motion-tests.tsx
Ryan Cavanaugh 81862d240d More fixes
2016-05-04 22:50:05 -07:00

13 lines
327 B
TypeScript

import * as React from 'react';
import {Motion, spring} from 'react-motion';
class Root extends React.Component<{}, {}> {
render() {
return (
<Motion defaultStyle={{ x: 0 }} style = {{ x: spring(10) }}>
{(value: any) => <div>{ value.x } </div>}
</Motion>
);
}
}