mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-17 02:18:07 +08:00
15 lines
296 B
TypeScript
15 lines
296 B
TypeScript
|
import React from 'react';
|
||
|
import { DatePicker } from 'antd';
|
||
|
|
||
|
const App: React.FC = () => (
|
||
|
<DatePicker.RangePicker
|
||
|
placeholder={['', 'Till Now']}
|
||
|
allowEmpty={[false, true]}
|
||
|
onChange={(date, dateString) => {
|
||
|
console.log(date, dateString);
|
||
|
}}
|
||
|
/>
|
||
|
);
|
||
|
|
||
|
export default App;
|