Home >Web Front-end >JS Tutorial >How to access local react project
How to access the local react project: first open the command line and use the cd command to enter the project root directory; then use the "npm start" or "yarn start" command to start the project; finally use the browser to access "localhost:3000 "That's it.
The operating environment of this tutorial: Dell G3 computer, Windows 7 system, react17.0.1 version.
Recommended: "javascript basic tutorial""react video tutorial"
Access local react project
To access the local react project, you need to run the project first, and then access it through the browser. Let's take a look at the specific implementation method.
1. First open the command line and use the cd command to enter the project root directory
cd my-app
2. Then use the npm start or yarn start command to start the project
npm start yarn start
3. Finally use Just access localhost:3000 with your browser. Under the LAN, you can access the link marked in red below (you can use the ipconfig command to check the local IP)
The above is the detailed content of How to access local react project. For more information, please follow other related articles on the PHP Chinese website!