How to create React project using vs code

Solution :-

Step -1 :- Firstly open vs code and make sure you have installed node is and npm in your system.

step- 2 :- Now go to View option and select “Terminal” option

step-3 :- now in Terminal write the command for create a project :-

npx create-react-app my-demo-app

now click on enter button after that your project is started some time it will take some time

step-4 :- Now open Terminal and you have to change the directory by using this command like cd and your project name

cd my-demo-app

step-5:- Now you can see this directory

Step – 6 :- Now click on File -> Open Folder -> select your project folder and open the project in vs code and now you will be able to see your project.

7. now open Terminal and Run your project using this command

npm start

8. Now your project will open with the port – 3000

Leave a Reply

Your email address will not be published. Required fields are marked *

*