Running An Existing React App In VSCode
If you’re searching for this you’re probably new to VSCode. Maybe you’ve downloaded or cloned a new React project to your hard drive and now you want to start working on the app. But first you need to run it on localhost.
You can open React for editing and building apps in VSCode. But React doesn’t run in VSCode, it runs in NodeJS. So this is why you will use Visual Studio Code side by side with your React app opened in a browser.
To run a React app you just pulled from a GitHub repository, you will first need to make sure that you have NodeJS installed on your system.
Once you download and install Node, just go through this tutorial:
- Open your React project folder in VSCode
- Go to Terminal (click Terminal on top menu)
- Click New Terminal ( Ctrl + Shift + ` )
- Type npm start
That’s all there is to it.