ant-design/components/date-picker/demo/basic.md
2016-04-01 10:08:19 +08:00

17 lines
244 B
Markdown

---
order: 0
title: 基本
---
最简单的用法。
````jsx
import { DatePicker } from 'antd';
function onChange(value, dateString) {
console.log(value, dateString);
}
ReactDOM.render(<DatePicker onChange={onChange} />, mountNode);
````