Home >Development Tools >VSCode >How to start react project with vscode
How to start react project with vscode
Requirements:
● Have nodejs environment and npm installed
● vscode installed
First create a project using the create-react-app scaffolding.
create-react-app demo
Then use vscode to start the react project:
1. Use the shortcut key ctrl ` to open the terminal in the VSCode editor
2. cd demo to enter the demo project
3. Just run the project with yarn start or npm start.
Knowledge expansion:
The relationship between node and npm: node.js is a running environment for js and a server-side js interpreter.
Node contains npm. After installing node, you will also find that npm has been installed.
npm is node’s package manager.
Recommended related articles and tutorials: vscode tutorial
The above is the detailed content of How to start react project with vscode. For more information, please follow other related articles on the PHP Chinese website!