]> git.immae.eu Git - github/fretlink/time-picker.git/blame - examples/format.js
Merge branch 'master' of github.com:react-component/time-picker
[github/fretlink/time-picker.git] / examples / format.js
CommitLineData
37c36c09 1import 'rc-time-picker/assets/index.less';
2import React from 'react';
3import ReactDom from 'react-dom';
4import moment from 'moment';
5import TimePicker from 'rc-time-picker';
6
7const App = React.createClass({
8 render() {
9 return (
10 <div>
11 <TimePicker defaultValue={moment()} showHour={false} />
12 <TimePicker defaultValue={moment()} showMinute={false} />
13 <TimePicker defaultValue={moment()} showSecond={false} />
14
15 <TimePicker defaultValue={moment()} showMinute={false} showSecond={false} />
16 <TimePicker defaultValue={moment()} showHour={false} showSecond={false}/>
17 <TimePicker defaultValue={moment()} showHour={false} showMinute={false} />
18 </div>
19 );
20 },
21});
22
23ReactDom.render(
24 <App />,
25 document.getElementById('__react-content')
26);