Here are the steps to install React in Windows:
Install Node.js: Download and install the latest version of Node.js from the official website (https://nodejs.org/).
Install npm: npm (Node Package Manager) is installed automatically when you install Node.js. You can check the version of npm by running the following command in the command prompt:
npm -v
- Create a React project: Open the command prompt and navigate to the folder where you want to create your React project. Then run the following command:
luanpx create-react-app my-app
Replace "my-app" with the name of your project. This will create a new React project in a folder named "my-app".
- Navigate to the project folder:
bashcd my-app
- Start the development server: To start the development server, run the following command
npm start
- Open your browser and go to http://localhost:3000/ to see the default React application.
That's it! You have successfully installed React in Windows.