Apps can be tested on browsers using the responsive view. The preview of the app can be observed from any width to any height. But to test it out on a real mobile, the app has to be deployed somewhere.
Note: This method would also work for apps created using other ways. I have used react hence the title.
Both the computer and mobile device must be connected to the same wifi network.
Get the local IP address of the computer. My local IP address, in this case, is
I am using
ifconfigto get the IP address on ubuntu.
Search for Find local ip address for your specific os.
Get the port on which the react-app is running. ex., My app is running on localhost:3000
Go to the browser in the mobile device and enter : For me, it would be