aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/format.js
blob: c9a9539ab288c8fb89c759c945ce0740e3ebdcf1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import 'rc-time-picker/assets/index.less';
import React from 'react';
import ReactDom from 'react-dom';
import moment from 'moment';
import TimePicker from 'rc-time-picker';

const App = React.createClass({
  render() {
    return (
      <div>
        <TimePicker defaultValue={moment()} showHour={false} />
        <TimePicker defaultValue={moment()} showMinute={false} />
        <TimePicker defaultValue={moment()} showSecond={false} />

        <TimePicker defaultValue={moment()} showMinute={false} showSecond={false} />
        <TimePicker defaultValue={moment()} showHour={false} showSecond={false}/>
        <TimePicker defaultValue={moment()} showHour={false} showMinute={false} />
      </div>
    );
  },
});

ReactDom.render(
  <App />,
  document.getElementById('__react-content')
);