mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 14:13:37 +08:00
Update README.md
This commit is contained in:
parent
5bcb23dd27
commit
b0363916a7
10
README.md
10
README.md
@ -37,18 +37,16 @@ import 'antd/dist/antd.css'; // or 'antd/dist/antd.less'
|
||||
|
||||
### Use modularized antd
|
||||
|
||||
use [babel-plugin-antd](https://github.com/ant-design/babel-plugin-antd).
|
||||
use [babel-plugin-antd](https://github.com/ant-design/babel-plugin-antd) with config:
|
||||
|
||||
babel plugin config:
|
||||
|
||||
```
|
||||
```js
|
||||
['antd', {
|
||||
style: 'css'
|
||||
style: 'css'
|
||||
}]
|
||||
```
|
||||
|
||||
```jsx
|
||||
import { DatePicker } from 'antd';
|
||||
import { DatePicker } from 'antd'; // automatically parse and require css modularly
|
||||
```
|
||||
|
||||
No need to import style manually.
|
||||
|
Loading…
Reference in New Issue
Block a user