Browse Source

fixed typo error. (#8542)

pull/8536/head
JaePil Jung 7 years ago
committed by Wei Zhu
parent
commit
68d4e34a10
  1. 2
      docs/react/use-with-create-react-app.en-US.md
  2. 2
      docs/react/use-with-create-react-app.zh-CN.md

2
docs/react/use-with-create-react-app.en-US.md

@ -148,7 +148,7 @@ $ yarn add babel-plugin-import --dev
Remove the `@import '~antd/dist/antd.css';` statement added before because `babel-plugin-import` will import styles and import components like below:
```diff
// scr/App.js
// src/App.js
import React, { Component } from 'react';
- import Button from 'antd/lib/button';
+ import { Button } from 'antd';

2
docs/react/use-with-create-react-app.zh-CN.md

@ -145,7 +145,7 @@ $ yarn add babel-plugin-import --dev
然后移除前面在 `src/App.css` 里全量添加的 `@import '~antd/dist/antd.css';` 样式代码,并且按下面的格式引入模块。
```diff
// scr/App.js
// src/App.js
import React, { Component } from 'react';
- import Button from 'antd/lib/button';
+ import { Button } from 'antd';

Loading…
Cancel
Save