mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-07 17:44:35 +08:00
docs: Update cra doc (#23944)
This commit is contained in:
parent
1abe5495a2
commit
c9fada3222
@ -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.
|
||||||
|
|
||||||
|
@ -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-plugin,react-app-rewired,scss,less 等插件。你可以通过只运行一个命令来创建一个没有任何配置的新项目。
|
你也可以使用 [react-scripts-ts-antd](https://www.npmjs.com/package/react-scripts-ts-antd),其中包括了 ts-import-plugin,react-app-rewired,scss,less 等插件。你可以通过只运行一个命令来创建一个没有任何配置的新项目。
|
||||||
|
|
||||||
|
@ -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!
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user