import { useState } from "react"; export default function CTAForm() { const [{ isSubmitted }, setState] = useState({ isSubmitted: false }); const onSubmit = () => setState({ isSubmitted: true }); return (
{isSubmitted ? (

You're on the list! We will be in touch soon

) : (
)}
); }