🚀 Installing Create React App
Create React App (CRA) is an officially supported tool by the React team to quickly set up a new React project with zero configuration.
📦 What is Create React App?
Create React App sets up your development environment with Webpack, Babel, ESLint, and a local development server — all pre-configured for React.
✅ Step 1: Use npx to Create a Project
You don’t need to install Create React App globally. Simply use npx (included with npm) to generate a new project:
npx create-react-app my-app
Replace my-app with your desired project name.
📁 Step 2: Navigate into the Project Folder
cd my-app
🟢 Step 3: Start the Development Server
npm start
This will open your React app at http://localhost:3000 in the browser.
🧹 Optional: Clean Up Unused Files
After setup, you may delete default files like App.test.js, logo.svg, and clean up the App.js for your own UI.
📌 Notes
- Make sure Node.js ≥ 14.0 is installed.
- You can also use
yarn create react-app my-appif you use Yarn. - CRA is suitable for small to medium apps. For more flexibility, use Vite or Next.js.


