|
|
@ -15,11 +15,21 @@ An enterprise-class UI design language and React-based implementation. |
|
|
|
|
|
|
|
## Usage example |
|
|
|
|
|
|
|
### Use all components |
|
|
|
|
|
|
|
```jsx |
|
|
|
import { Datepicker } from 'antd'; |
|
|
|
ReactDOM.render(<Datepicker />, mountNode); |
|
|
|
``` |
|
|
|
|
|
|
|
### Use on demand |
|
|
|
|
|
|
|
```jsx |
|
|
|
import "antd/lib/index.css"; // only need to import once in entry module |
|
|
|
import Datepicker from 'antd/lib/datepicker'; |
|
|
|
ReactDOM.render(<Datepicker />, mountNode); |
|
|
|
``` |
|
|
|
|
|
|
|
## Links |
|
|
|
|
|
|
|
- [Home page](http://ant.design/) |
|
|
|