I'm developing the front end of a web application on React using create-react-app ,and I have a an embedded Tomcat server running on another machine with an ipaddress and a port number. How do I connect to that server? I'm using the create-react-app's folder structure so in which would I declare the server address?
The REST endpoint of the server is exposed and is listening on a particular socket.
You could use a REST client library. For example: https://www.npmjs.com/package/react-rest-client
"I'm using the create-react-app's folder structure so in which would I declare the server address?" - That depends on the application. You could just hard code it or make it configurable.