docs: Update cra doc (#23944)

This commit is contained in:
二货机器人 2020-05-07 21:01:42 +08:00 committed by GitHub
parent 1abe5495a2
commit c9fada3222
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -187,7 +187,7 @@ We use `modifyVars` option of [less-loader](https://github.com/webpack/less-load
## Alternative ways ## Alternative ways
You can also follow instructions in [Use in create-react-app](/docs/react/use-with-create-react-app.en-US.md), then use to setup the TypeScript development environment by yourself. You can also follow instructions in [Use in create-react-app](/docs/react/use-with-create-react-app), then use to setup the TypeScript development environment by yourself.
And you can use [react-scripts-ts-antd](https://www.npmjs.com/package/react-scripts-ts-antd) which includes ts-import-plugin, react-app-rewired, scss, less and etc. You can create a new project that without any configurations by running just one command. And you can use [react-scripts-ts-antd](https://www.npmjs.com/package/react-scripts-ts-antd) which includes ts-import-plugin, react-app-rewired, scss, less and etc. You can create a new project that without any configurations by running just one command.

View File

@ -185,7 +185,7 @@ module.exports = override(
## 其他方案 ## 其他方案
先按照 [在 create-react-app 中使用](/docs/react/use-with-create-react-app.en-US.md) 中的说明操作,再配置 TypeScript 开发环境。 先按照 [在 create-react-app 中使用](/docs/react/use-with-create-react-app) 中的说明操作,再配置 TypeScript 开发环境。
你也可以使用 [react-scripts-ts-antd](https://www.npmjs.com/package/react-scripts-ts-antd),其中包括了 ts-import-pluginreact-app-rewiredscssless 等插件。你可以通过只运行一个命令来创建一个没有任何配置的新项目。 你也可以使用 [react-scripts-ts-antd](https://www.npmjs.com/package/react-scripts-ts-antd),其中包括了 ts-import-pluginreact-app-rewiredscssless 等插件。你可以通过只运行一个命令来创建一个没有任何配置的新项目。

View File

@ -84,7 +84,7 @@ Add `antd/dist/antd.css` at the top of `src/App.css`.
... ...
``` ```
Ok, you should now see a blue primary button displayed on the page. Next you can choose any components of `antd` to develop your application. Visit other workflows of `create-react-app` at its [User Guide](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md). Ok, you should now see a blue primary button displayed on the page. Next you can choose any components of `antd` to develop your application. Visit other workflows of `create-react-app` at its [User Guide](https://github.com/facebook/create-react-app/blob/master/packages/cra-template/template/README.md).
We are successfully running antd components now, go build your own application! We are successfully running antd components now, go build your own application!