This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { useState } from 'react'; | |
| import { useForm } from 'react-hook-form'; | |
| import emailjs from '@emailjs/browser'; | |
| const ContactForm = () => { | |
| const { | |
| register, | |
| handleSubmit, | |
| reset, | |
| formState: { errors } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const ContactForm = () => { | |
| return ( | |
| <div className='ContactForm'> | |
| <div className='container'> | |
| <div className='row'> | |
| <div className='col-12 text-center'> | |
| <div className='contactForm'> | |
| <form id='contact-form' noValidate> | |
| {/* Row 1 of form */} | |
| <div className='row formRow'> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { useForm } from 'react-hook-form'; | |
| const ContactForm = () => { | |
| const { | |
| register, | |
| handleSubmit, | |
| reset, | |
| formState: { errors } | |
| } = useForm(); | |