--- id: quick-start title: Quick Start --- The bare minimum to get started with TanStack Form is to create a form and add a field. Keep in mind that this example does not include any validation or error handling... yet. ```tsx import { createForm } from '@tanstack/solid-form' function App() { const form = createForm(() => ({ defaultValues: { fullName: '', }, onSubmit: async (values) => { // Do something with form data console.log(values) }, })) return (

Simple Form Example

{ e.preventDefault() e.stopPropagation() void form.handleSubmit() }} >
( field().handleChange(e.target.value)} /> )} />
) } ``` From here, you'll be ready to explore all of the other features of TanStack Form!