How to launch a locally created React app to access and view it from a browser on another PC.

Asked 1 years ago, Updated 1 years ago, 418 views

Could you tell me how to set up the local React application to be displayed from another PC browser?
  
I learned how to create a React app on my PC and launch it from my PC (local).
When you launch a command prompt, you will see the following:
  

Completed successfully!

You can now view login in the browser.

Local: http://localhost:3000
On Your Network: http://○○○.○○○.○○○.○○○:3000★★★★←IP is ○○○.

Note that the development build is not optimized.
To create a production build, use npm run build.

webpack compiled successfully

You can use this React app from another PC to browse to the URL of ★★★★ (http://○○○.○○○.○○○.○○○:3000)
When I put it in, the app doesn't show up.

I think something needs to be set up.I would like you to teach me how to set it up.
Thank you for your cooperation.

reactjs

2022-10-30 19:06

1 Answers

I don't know what the final launch method is, but for example, in the case of CRA, it is common to "deploy" and publish it as described on the page below.

https://create-react-app.dev/docs/deployment

The above page also contains the settings and procedures, so I thought it would be better if you could check it once and ask more specific questions according to the final launch method.


2022-10-30 19:06

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.