ant-design/components/date-picker/demo/basic.md

17 lines
244 B
Markdown
Raw Normal View History

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