{ fetch("/", { method: "POST", headers: { "Content-Type": "application/x-www-form-urlencoded" }, body: encode({ "form-name": "waitlist", email }), }) .then(() => { setShowConfetti(true); setFlag(); }) .catch(() => null); e.preventDefault(); }} >
setEmail(e.target.value)} id="email" className="mt-0 bg-white block w-full px-0.5 border-0 border-b-2 border-gray-200 focus:ring-0 focus:border-black" placeholder="Enter your email" name="email" />