How to create React app?

QuestionsQuestions8 SkillsProYour First React LabAug, 28 2025
0159

To create a new React app, you can use Create React App, a command-line tool that sets up a new React project with a good default configuration. Here are the steps:

  1. Install Node.js: Make sure you have Node.js installed on your machine. You can download it from nodejs.org.

  2. Open your terminal: Navigate to the directory where you want to create your React app.

  3. Run the following command:

    npx create-react-app my-app

    Replace my-app with your desired project name. This command uses npx to run Create React App without needing to install it globally.

  4. Navigate into your project directory:

    cd my-app
  5. Start the development server:

    npm start

    This will start the app and open it in your default web browser at http://localhost:3000.

Now you have a basic React app set up! You can start modifying the src/App.js file to build your application. For more in-depth learning, consider checking out LabEx labs on React!

0 Comments

no data
Be the first to share your comment!