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:
- Data validation
- Handling errors
- Maintaining state
- Optimistic loading
- Client-side validation
Plus some simple new things like a Submit component that uses the pending
state.
Just go here: https://githubbox.com/carderne/react-forms
Clone:
git clone git@github.com:carderne/react-forms.git
Install:
npm install
Run:
npm run dev