import React from 'react'; import ReactDOM from 'react-dom'; import Timeline from '..'; import { Select } from '../..'; const TimelineItem = Timeline.Item; interface IState { timelineAnimation: boolean; } class Demo extends React.Component<{}, IState> { constructor(props) { super(props); this.state = { timelineAnimation: true, }; } onTimelineAnimation = value => { this.setState({ timelineAnimation: value }); }; render() { return (
); } } ReactDOM.render(, document.getElementById('timeline-demo-6'));