Skip to content

Commit 4b4f0a0

Browse files
dario-piotrowiczharshil1712
authored andcommitted
Update react pages guide and react build-configuration not to use/mention create-react-app (#17499)
partially addresses #16379
1 parent 98c6499 commit 4b4f0a0

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/content/docs/pages/framework-guides/deploy-a-react-site.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { PagesBuildPreset, Render, PackageManagers } from "~/components";
77

88
[React](https://reactjs.org/) is a popular framework for building reactive and powerful front-end applications, built by the open-source team at Facebook.
99

10-
In this guide, you will create a new React application and deploy it using Cloudflare Pages. You will use `create-react-app`, a batteries-included tool for generating new React applications.
10+
In this guide, you will create a new React application and deploy it using Cloudflare Pages.
1111

1212
## Setting up a new project
1313

@@ -51,11 +51,11 @@ npm start
5151

5252
<div>
5353

54-
<PagesBuildPreset framework="create-react-app" />
54+
<PagesBuildPreset framework="react" />
5555

5656
</div>
5757

58-
After configuring your site, you can begin your first deploy. You should see Cloudflare Pages installing `create-react-app`, your project dependencies, and building your site, before deploying it.
58+
After configuring your site, you can begin your first deploy. You should see Cloudflare Pages installing `react`, your project dependencies, and building your site, before deploying it.
5959

6060
:::note
6161

src/content/pages-framework-presets/index.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
build_configs:
2-
create-react-app:
3-
display_name: Create React App
2+
react:
3+
display_name: React (Vite)
44
build_command: npm run build
5-
build_output_directory: build
5+
build_output_directory: dist
66
icon: /icons/framework-icons/logo-react.svg
77
gatsby:
88
display_name: Gatsby

0 commit comments

Comments
 (0)