mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-17 23:50:52 +08:00
update doc
This commit is contained in:
parent
a1a46ae57a
commit
fc32c751ca
@ -164,7 +164,7 @@ If you see a log like below screenshot, you might import all components by writi
|
|||||||
|
|
||||||
> 
|
> 
|
||||||
|
|
||||||
But, we can import component on demand:
|
But, we can import individual components on demand:
|
||||||
|
|
||||||
```jsx
|
```jsx
|
||||||
import Button from 'antd/lib/button';
|
import Button from 'antd/lib/button';
|
||||||
@ -177,7 +177,7 @@ We strongly recommend to use [babel-plugin-import](https://github.com/ant-design
|
|||||||
import { Button } from 'antd';
|
import { Button } from 'antd';
|
||||||
```
|
```
|
||||||
|
|
||||||
And this plugin can also load styles on demand. See the [usage](https://github.com/ant-design/babel-plugin-import#usage) for further details.
|
And this plugin can load styles too, read [usage](https://github.com/ant-design/babel-plugin-import#usage) for more details.
|
||||||
|
|
||||||
## Customization
|
## Customization
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user