javascript - What time plug-ins can be used with react?
扔个三星炸死你
扔个三星炸死你 2017-06-26 10:57:55
0
1
634

What time plug-ins can be used in react and how to use them

扔个三星炸死你
扔个三星炸死你

reply all(1)
过去多啦不再A梦

Just use antd, which can be introduced as needed.
The following is the official basic code

import { DatePicker } from 'antd';
const { MonthPicker, RangePicker } = DatePicker;

function onChange(date, dateString) {
  console.log(date, dateString);
}

ReactDOM.render(
  <p>
    <DatePicker onChange={onChange} />
    <br />
    <MonthPicker onChange={onChange} placeholder="Select month" />
    <br />
    <RangePicker onChange={onChange} />
  </p>
, mountNode);
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template