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>
        );
    }
}
