Skip to content

Commit b938459

Browse files
DaCameraGirlntrogh
andauthored
Revise React tutorial to reflect new recommendations (#9839)
* Revise React tutorial to reflect new recommendations Updated tutorial to recommend Vite or Next.js instead of create-react-app. * Move note outside of code block and mark as important --------- Co-authored-by: Nick Trogh <ntrogh@hotmail.com>
1 parent edabc52 commit b938459

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

docs/nodejs/reactjs-tutorial.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,12 @@ MetaDescription: React JavaScript tutorial showing IntelliSense, debugging, and
1111

1212
## Welcome to React
1313

14+
> [!IMPORTANT]
15+
> `create-react-app` [is no longer actively maintained](https://react.dev/blog/2025/02/14/sunsetting-create-react-app). The React team now recommends using a framework like [Vite](https://vite.dev) (`npm create vite@latest my-app -- --template react`) or [Next.js](https://nextjs.org). The steps in this tutorial still apply to any React project setup.
16+
1417
We'll be using the `create-react-app` [generator](https://reactjs.org/docs/create-a-new-react-app.html#create-react-app) for this tutorial. To use the generator as well as run the React application server, you'll need [Node.js](https://nodejs.org/) JavaScript runtime and [npm](https://www.npmjs.com/) (Node.js package manager) installed. npm is included with Node.js which you can download and install from [Node.js downloads](https://nodejs.org/en/download/).
1518

16-
>**Tip**: To test that you have Node.js and npm correctly installed on your machine, you can type `node --version` and `npm --version` in a terminal or command prompt.
19+
> **Tip**: To test that you have Node.js and npm correctly installed on your machine, you can type `node --version` and `npm --version` in a terminal or command prompt.
1720
1821
You can now create a new React application by typing:
1922

0 commit comments

Comments
 (0)