]>
git.immae.eu Git - github/fretlink/time-picker.git/blob - examples/pick-time.js
1 /* eslint no-console:0 */
3 import 'rc-time-picker/assets/index.less';
5 import React
from 'react';
6 import ReactDom
from 'react-dom';
8 import moment
from 'moment';
10 import TimePicker
from 'rc-time-picker';
12 const showSecond
= true;
13 const str
= showSecond
? 'HH:mm:ss' : 'HH:mm';
16 function onChange(value
) {
17 console
.log(value
&& value
.format(str
));
22 style
={{ width: 100 }}
23 showSecond
={showSecond
}
24 defaultValue
={moment()}
28 document
.getElementById('__react-content')