react-start
Installation
SKILL.md
React Start (@tanstack/react-start)
This is the React Start entry skill. Use the workflow below, then load only the package skill that owns the boundary you are changing. Do not read start-core, Router Core, and React Router manuals in full before starting.
For React Server Components patterns, see react-start/server-components.
CRITICAL: All code is ISOMORPHIC by default. Loaders run on BOTH server and client. Use
createServerFnfor server-only logic.
CRITICAL: Do not confuse
@tanstack/react-startwith Next.js or Remix. They are completely different frameworks with different APIs.
CRITICAL: Types are FULLY INFERRED. Never cast, never annotate inferred values.
Full-Stack Workflow
- Define the route and component with
createFileRoute. - Put private or server-only reads and writes in
createServerFn; call reads directly from loaders. - Use
useServerFnfor component mutations, then invalidate the router or query cache after the write resolves. - Enforce auth in every private server function or server route. Add
beforeLoadseparately for navigation UX. - Run the initial SSR path, client navigation, mutation plus reload, direct anonymous endpoint request, runtime response assertion, type tests, and production build.