docs: fix import style error due to duplicated identifier (#4917)

* fix render unuse className when type is undefined

* docs: fix import style error due to duplicated identifier
This commit is contained in:
Chikara Chan 2017-02-17 11:11:42 +08:00 committed by Benjy Cui
parent 58afe5f729
commit 5ff8723a9f
2 changed files with 2 additions and 2 deletions

View File

@ -168,7 +168,7 @@ But, we can import individual components on demand:
```jsx
import Button from 'antd/lib/button';
import Button from 'antd/lib/button/style/css'; // import style
import 'antd/lib/button/style/css'; // import style
```
We strongly recommend to use [babel-plugin-import](https://github.com/ant-design/babel-plugin-import), which can convert the following code to the 'antd/lib/xxx' way:

View File

@ -166,7 +166,7 @@ IE8 需要配合使用 [react@0.14.x](https://facebook.github.io/react/blog/2016
```jsx
import Button from 'antd/lib/button';
import Button from 'antd/lib/button/style/css'; // 按需引入 css
import 'antd/lib/button/style/css'; // 按需引入 css
```
如果你使用了 babel那么可以使用 [babel-plugin-import](https://github.com/ant-design/babel-plugin-import) 来进行按需加载,加入这个插件后。你可以仍然这么写: