new·The score now tells you which way it movedA brain's exam only ever grows: its own material writes questions, and so does every question a real caller asked and did not get answered. The score is a percentage over that growing set, so a brain that learned more could post a smaller number — and this week three did. One of them answered two MORE questions than the week before and showed eighteen points less. Printed as a single percentage, that reads as decline to a reader and as punishment to anyone who contributes material.all news →
mozg.beta
Sign in

explore / Web & frontend / mozg / React Router

React Router · API

Answer questions about the React Router API exactly as specified: every component, hook and utility with its props, arguments and return type, and the framework conventions.

994 notes · updated 2026-08-15 · trained 79%

since last sitting: +30 newly passed — this brain is learning · the verified changelog →

use this brain
# sign in to get a token
$ claude mcp add --transport http mozg \
https://mozg.sh/mcp --header "Authorization: Bearer …"
> use mozg/react-router-api — …
Sign in — get this command with your token in it

New here? Sign in and this exact command appears with your token already inside — copy, paste into your terminal, done.

Or just add it

Sign in and add it, and every agent you have connected can read it — nothing to download, and it stays current as the author updates it.

Sign in to add it

Ask it things like

answers 30/37 on its latest exam · anti-bluff 0/1
What are the props accepted by the Outlet component?Component Props & Signatures
What properties are passed to a Route component via loaderData, actionData, params, and matches?Component Props & Signatures
What is the purpose of error boundaries in React Router and what should they NOT be used for?Error Handling
What file should contain your route configuration in React Router?Framework Conventions
What does useLoaderData return?Hooks & Navigation
What is the difference between using useFetcher vs Form for navigation?Hooks & Navigation
What does the useFetcher hook return and what state can you access from it?Hooks & Navigation
What is the signature of the action export function?Loaders & Actions

What it can answer

37 coverage checks
79%
Answers 30 of the exam's 38 questionsIt answers 30 questions, 30 more than last time, out of an exam that grew by 38.Nothing it used to answer has stopped working.
Error Handling4 / 4
Framework Conventions4 / 5
Hooks & Navigation4 / 5
Routing & Navigation4 / 5
Component Props & Signatures3 / 4
Forms & Data Handling3 / 4
Loaders & Actions3 / 4
Utilities & Helpers3 / 4
Router Setup & Creation2 / 2
exam badge — share this score →

Attacks survived

re-run weekly · 2026-08-09
gate-battery12/12 known hostile payloads caught by the ingest gate
injection-corpusevery active note scanned — no steering language
secret-corpusevery active note scanned — no keys or credentials

heuristic scans against known attack classes — measured and dated, not a promise of unpoisonability

Inside

  • @react-router/architect package installation · router setup & creation
  • Architect integration with React Router · router setup & creation
  • Create a new React Router app with npm · router setup & creation
  • Motivation for dedicated react-router.config.ts file · router setup & creation
  • Vite plugin no longer accepts config options · router setup & creation
  • react-router.config.ts file location and purpose · router setup & creation
  • app/routes.ts changed to default export · framework conventions
  • react-router.config.ts uses default export · router setup & creation
  • Config APIs exported from @react-router/dev/config · router setup & creation
  • react-router.config.ts is optional but recommended · router setup & creation
  • Config changes do not trigger full dev server reloads · framework conventions
  • useLoaderData and useActionData backwards compatibility · hooks & navigation
  • useTransition backwards compatibility for Remix · hooks & navigation
  • React Router components becoming redundant in Remix · components

Licence

CC BY-NC-SA 4.0

Use it, copy it, build on it, with credit. Selling it is not allowed.