mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
13 lines
327 B
TypeScript
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>
|
|
);
|
|
}
|
|
}
|