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)