How to create a React Project On Windows Device
First, you have to install node.js on your local machine to create a new react app. Here below I provided you the link:
Download | Node.js
Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.
nodejs.org
Steps:
- Click on the windows installer
2. Download the node.js setup
3. By clicking the setup, install node.js
Now, open the command prompt and run the following commands to check if node.js is installed or not:
- node -v
- npm -v
Congratulations, Node.js is now successfully installed on your local machine. Now let’s create our first React project. First using the cd command to enter the directory where you want to create your react app.
cd Documents
Run the following command for creating a new project:
npx create-react-app my-first-app
Your First react project is now ready!!
Run the following commands to run your project on the browser.
- cd my-first-app
- npm start
Now, start building your skills with react. Do let me know if you have any questions. :)