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

25 lines
311 B
Markdown
Raw Normal View History

2016-03-31 09:40:55 +08:00
---
order: 0
2016-06-19 11:17:09 +08:00
title:
zh-CN: 基本
en-US: Basic
2016-03-31 09:40:55 +08:00
---
2016-06-19 11:17:09 +08:00
## zh-CN
最简单的用法。
2016-06-19 11:17:09 +08:00
## en-US
The most basic usage.
````jsx
import { DatePicker } from 'antd';
function onChange(value, dateString) {
console.log(value, dateString);
}
ReactDOM.render(<DatePicker onChange={onChange} />, mountNode);
````