Skip to content

Instantly share code, notes, and snippets.

View ksentak's full-sized avatar

Keaton Sentak ksentak

View GitHub Profile
@ksentak
ksentak / react-contact-form-step-3.jsx
Last active May 11, 2024 12:38
React Contact Form - Final
import { useState } from 'react';
import { useForm } from 'react-hook-form';
import emailjs from '@emailjs/browser';
const ContactForm = () => {
const {
register,
handleSubmit,
reset,
formState: { errors }
@ksentak
ksentak / react-contact-form-step-1.jsx
Last active February 5, 2021 20:19
React Contact Form - Step 1
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'>
@ksentak
ksentak / react-contact-form-step-2.jsx
Last active August 8, 2021 21:36
React Contact Form - Step 2
import { useForm } from 'react-hook-form';
const ContactForm = () => {
const {
register,
handleSubmit,
reset,
formState: { errors }
} = useForm();