Home  >  Article  >  Web Front-end  >  How to access local react project

How to access local react project

藏色散人
藏色散人Original
2020-12-31 09:29:283221browse

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.

How to access local react project

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)

How to access local react project

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn