From 5ff8723a9f0293fddb24bedec32284e6609a318c Mon Sep 17 00:00:00 2001 From: Chikara Chan Date: Fri, 17 Feb 2017 11:11:42 +0800 Subject: [PATCH] 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 --- docs/react/getting-started.en-US.md | 2 +- docs/react/getting-started.zh-CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/react/getting-started.en-US.md b/docs/react/getting-started.en-US.md index 2627358a88..e42fc3c56b 100644 --- a/docs/react/getting-started.en-US.md +++ b/docs/react/getting-started.en-US.md @@ -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: diff --git a/docs/react/getting-started.zh-CN.md b/docs/react/getting-started.zh-CN.md index 1b32d303ae..1195e43389 100644 --- a/docs/react/getting-started.zh-CN.md +++ b/docs/react/getting-started.zh-CN.md @@ -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) 来进行按需加载,加入这个插件后。你可以仍然这么写: