Quickstart — React
A minimal React SPA with login, signup, and a protected route.
A working React frontend on top of the backend quickstart.
1. Set up the client
2. Wrap your app
3. A login form
4. A protected page
5. Wire up routing
6. Run it
Visit http://localhost:5173. You should be redirected to /login. Sign up via the backend curl from the backend quickstart, then log in via the form.
What's next
- Provider — full props reference.
- Hooks — narrower hooks for less re-rendering.
- Guards —
<AuthGuard>,<RequireRole>,<RequirePermission>. - React auth forms recipe — copy-paste login / signup / MFA / forgot-password forms.