Calling function in Node JS server from React front end

Viewed 15

I set up nodemailer and it works just fine in the back end, but let's say I want to name the function sendEmail(message){} and then in my react front end come up with a message that I want to send. How would I call this function and send it the parameter of the message? Would axios be useful?

0 Answers
Related