© 2026 Hedgehog Software, LLC
const handlesubmit =(e:React.FormEvent ) =>{ e.preventDefault() axios.post('/api/register', data) .then(()=>{ router.push('/') } .catch((error) =>{ toast.error('invalid') } }