mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-26 09:58:33 +08:00
18 lines
215 B
Markdown
18 lines
215 B
Markdown
# 基本
|
|
|
|
- order: 0
|
|
|
|
最简单的用法。
|
|
|
|
---
|
|
|
|
````jsx
|
|
import { DatePicker } from 'antd';
|
|
|
|
function onChange(value) {
|
|
console.log(value);
|
|
}
|
|
|
|
ReactDOM.render(<DatePicker onChange={onChange} />, mountNode);
|
|
````
|