npx create-react-app app-name
This command creates a template of a React application with the name of app-name of your current path.
If you have created folder already. then just navigate to inside that folder and run below given command on your terminal.
npx create-react-app .
This command creates a template of a React application within your created folder here .(dot) means current folder.
Once your command executed successfully. You will get folder structure like below given image.
Note :- npx is not a typo. It is a package runner command included within npm
Now, you need to navigate into your created react application folder. and run below given command.
npm start
If the above command executed successfully, Your application will run on localhost:3000 on your default browser. and its shown as given below output.
Comment below if you have any queries related to the above post for Getting Started: Installing React
0 Comments