loading...

Perform a POST request to API from React using Express Server

stelco profile image Steven Collins ・1 min read

Hi, I am trying to perform a POST request to our API (on a seperate server) from React using Express Server. All GET requests are working ok and when I do a POST request from a form in React, the req.body data is received by the express server and console.log shows this on the server.
My problem is taking this data and posting it back to the API.
I have a question here on stackoverflow so I wont retype it all out. Just hoping somebody can help with this as ive been trying to figure out for a few days now. Thanks.
https://stackoverflow.com/questions/58222743/sending-req-body-from-react-to-express-then-post-to-api

Discussion

markdown guide