From 1304b11eb5e8b8f72428a7c773062da1a53173a5 Mon Sep 17 00:00:00 2001 From: lijianan <574980606@qq.com> Date: Fri, 7 Feb 2025 16:23:03 +0800 Subject: [PATCH] docs: update usage with create-react-app (#52645) * docs: update Usage with create-react-app * fix: fix --- docs/react/use-with-create-react-app.en-US.md | 8 +++++++- docs/react/use-with-create-react-app.zh-CN.md | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/docs/react/use-with-create-react-app.en-US.md b/docs/react/use-with-create-react-app.en-US.md index fad623587d2f..75e330cd1e35 100644 --- a/docs/react/use-with-create-react-app.en-US.md +++ b/docs/react/use-with-create-react-app.en-US.md @@ -5,7 +5,13 @@ order: 1 title: Usage with create-react-app --- -[create-react-app](https://create-react-app.dev/) is one of the best React application development tools, This article will try to use `create-react-app` to create a `TypeScript` project, and introduce antd. + +:::warning +Note: React has officially deprecated `create-react-app` and is no longer recommended. +For more info, refer to [Repo](https://github.com/facebook/create-react-app/blob/main/README.md) +::: + +[create-react-app](https://create-react-app.dev) was once one of the best React application development tools, This article will try to use `create-react-app` to create a `TypeScript` project, and introduce antd. > We build `antd` based on latest stable version of TypeScript (`>=5.0.0`), please make sure your project dependency matches it. diff --git a/docs/react/use-with-create-react-app.zh-CN.md b/docs/react/use-with-create-react-app.zh-CN.md index 93a8478ceee1..994250aeb0b5 100644 --- a/docs/react/use-with-create-react-app.zh-CN.md +++ b/docs/react/use-with-create-react-app.zh-CN.md @@ -5,7 +5,13 @@ order: 1 title: 在 create-react-app 中使用 --- -[create-react-app](https://create-react-app.dev/) 是业界最优秀的 React 应用开发工具之一,本文会尝试使用 `create-react-app` 创建一个 `TypeScript` 项目,并引入 antd。 + +:::warning +注意:React 官方已经废弃 `create-react-app` 脚手架,不再推荐使用。 +详细信息参考 [官方仓库](https://github.com/facebook/create-react-app/blob/main/README.md) +::: + +[create-react-app](https://create-react-app.dev) 是业界曾经最优秀的 React 应用开发工具之一,本文会尝试使用 `create-react-app` 创建一个 `TypeScript` 项目,并引入 antd。 > `antd` 基于最新稳定版本的 TypeScript(`>=5.0.0`),请确保项目中使用匹配的版本。