I’m creating my first Public React Application, but I’m facing a problem.
I have a back-end server, in which I request/send a lot of data through my React App.
How to create an endpoint client so that I can change the host (
http://foo.com) and values (
commentId) constantly without having to edit them one by one?
How is this problem solved by large projects?
Is there a Rest API Client that helps me to write my endpoints, being able to prepend the API Host and join the values into a full URL? Like this: