DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Zengyf-CVer
Zengyf-CVer

Posted on

How ReactJS uses LAN

I used the latest version of react (https://github.com/facebook/react/releases/tag/v17.0.2).

Used the command:

npx create-react-app my-app
Enter fullscreen mode Exit fullscreen mode

My directory tree:

ksnip_20210908-222541

I ran the following command:

yarn
yarn start
Enter fullscreen mode Exit fullscreen mode

A local service is running in the browser: localhost:3000
Now, I want to run on the LAN, for example: 1xx.1xx.xx.xx:3000, how should I set it?

Top comments (0)

🌚 Browsing with dark mode makes you a better developer by a factor of exactly 40.

It's a scientific fact.