Learn Everything

Module · Frontend Engineer

Forms & Validation

One schema, validated on both sides, with errors the user can actually act on.

2 topics4 interactive tasks

TOPIC 01

Client-Side Validation

The schema that describes the form, and the error messages it produces.

What you'll practice

  • Write the Form Schema — guided · beginner
  • Write Error Messages People Can Use — practice · intermediate

A command you'll meet

cat ~/app/forms/schema.ts

A form is a conversation with the server. Open the task below for the full walkthrough.

TOPIC 02

Server-Side Validation

The client is a convenience; the server is the authority.

What you'll practice

  • Validate on the Server — practice · intermediate
  • Design the Pending State — challenge · advanced

A command you'll meet

cat ~/app/forms/server-action.ts

Never trust what arrives from a browser. Open the task below for the full walkthrough.