Valerigionetnoel / Restaurante-Trattoria

MIT License
1 stars 3 forks source link

Contact Form #4

Open roseandlily33 opened 1 year ago

roseandlily33 commented 1 year ago

The file that this is going to go in is the client/src/pages/Contact.js

You'll need 2 imports from react to get it to work useRef, and useState.

Your going to be creating the entire contact file from the handling the form on submit function to the actual form itself in the return(). Inside of the return we would want to include the persons name, email, message about what the form is about and then a submit button to send the email. (Don't worry about the styling of that and how it looks)

The email submission form is called emailJS. Here is a video about setting it up: https://www.youtube.com/watch?v=5EZsRnJpUNU

The setup does require an email if you just wanted to make a random gmail account for this I think that it would be the best, and I think that it would be considered something that we would want to hide and so we can come up with a way on how to do that a bit later on.