IPAddress from React book component only works w/ "on your network"


so from the React book, the <IPAddress /> and <IPAddressContainer /> app only shows the IP address on the screen when I click where the mouse is in this pic:

yet the picture in the book has localhost:3000 in the address bar. Did I do something wrong, or did the author forget to say something about this? I used npm start to run the thing.


There may be nothing wrong, for the HTTP Server adjusts what port it works on depending on a variety of system parameters. When you do navigate to localhost, what do you see?



when I navigate to the local host, all I get are the elipses that were put in in the constructor instead of an IP address


Does your browser’s Developer Tools Console display any errors?


yes, in Chrome, I get this: