/react-forms

React 19 Forms

Primary LanguageTypeScript

react-forms

A demo of React 19 Forms with Next.js 15.

Full walkthrough and explanation at this blog post: https://rdrn.me/react-forms/

Includes the following bits:

  1. Data validation
  2. Handling errors
  3. Maintaining state
  4. Optimistic loading
  5. Client-side validation

Plus some simple new things like a Submit component that uses the pending state.

Try it out

CodeSandbox

Just go here: https://githubbox.com/carderne/react-forms

Locally

Clone:

git clone git@github.com:carderne/react-forms.git

Install:

npm install

Run:

npm run dev