From 09f5af39fc5785410d067e17423b9842c09d4fb6 Mon Sep 17 00:00:00 2001 From: harielfr Date: Fri, 7 Nov 2025 20:54:46 -0300 Subject: [PATCH] docs: remove deprecated 'Setup with Create React App' guide (#15882) --- .../versioned_docs/version-30.0/TutorialReact.md | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/website/versioned_docs/version-30.0/TutorialReact.md b/website/versioned_docs/version-30.0/TutorialReact.md index fd6f7620acce..cee4d7260ee9 100644 --- a/website/versioned_docs/version-30.0/TutorialReact.md +++ b/website/versioned_docs/version-30.0/TutorialReact.md @@ -7,17 +7,11 @@ At Facebook, we use Jest to test [React](https://reactjs.org/) applications. ## Setup -### Setup with Create React App - -If you are new to React, we recommend using [Create React App](https://create-react-app.dev/). It is ready to use and [ships with Jest](https://create-react-app.dev/docs/running-tests/#docsNav)! You will only need to add `react-test-renderer` for rendering snapshots. - -Run - -```bash npm2yarn -npm install --save-dev react-test-renderer -``` +:::caution +The **Create React App (CRA)** project is no longer actively maintained. For starting a new React project, we recommend using modern tools such as **[Vite](https://vitejs.dev/)** or **[Next.js](https://nextjs.org/)**, which often include their own recommended Jest setup. Please refer to their documentation for the most current configuration instructions. +::: -### Setup without Create React App +### Manual Setup If you have an existing application you'll need to install a few packages to make everything work well together. We are using the `babel-jest` package and the `react` babel preset to transform our code inside of the test environment. Also see [using babel](GettingStarted.md#using-babel).