Next.js is an open-source React front-end development web framework that enables functionality such as server-side rendering and generating static websites for React based web applications.
Start collecting data in a matter of clicks.
Let Formspark take care of the servers, databases, and analytics.
Set up any form in seconds.
Out of the box React support
Compatible with Jamstack
import React, { useState } from "react"; import { useFormspark } from "@formspark/use-formspark"; const FORMSPARK_FORM_ID = "your-form-id"; function ContactPage() { const [submit, submitting] = useFormspark({ formId: FORMSPARK_FORM_ID, }); const [message, setMessage] = useState(""); const onSubmit = async (e) => { e.preventDefault(); await submit({ message }); alert("Form submitted"); }; return ( <form onSubmit={onSubmit}> <textarea value={message} onChange={(e) => setMessage(e.target.value)} /> <button type="submit" disabled={submitting}> Send </button> </form> ); } export default ContactPage;