How to create a React Application from cmd

 Hey guys,
Many of you must be thinking about creating a simple react application by using cmd.
Well there is simple command to create it.
"create-react-app" is the command that is used to create a simple react application.

For this command to work,you should make sure you have NPM and Node JS installed on your system.

Steps to create application are:

1.Open cmd at the location where you want to build the application ,ie D,E Drive etc.
2.Type "npx create-react-app myapp"
And run this command. It Will automatically create project structure and install required packages in it.

Once it is completed,follow below points:
1.type "cd myapp"
2.type "npm start"

This would run the project,and take you to browser having URL localhost:3000.
And so your react application is ready ,and you can now make changes in your project.



Comments

Popular posts from this blog

How to make online video streaming website using React JS