Problem Statement
Step-by-step: How to create a React app using create-react-app or Vite?
Explanation
You can create a new React project using Create React App or Vite. For CRA, run `npx create-react-app my-app`, then `cd my-app` and `npm start`. For Vite, run `npm create vite@latest my-app -- --template react`, install dependencies, and start with `npm run dev`. Both provide an optimized development setup with hot reload and bundling.
Code Solution
SolutionRead Only
npx create-react-app my-app # or npm create vite@latest my-app -- --template react
Practice Sets
This question appears in the following practice sets: