Post page kit
The redesigned post page, one component at a time. Each one lives in its own folder under
src/components/, styled with a CSS Module and the site tokens
(ADR 0007),
and takes its content as props, so a folder can be copied to another React site that defines
the same tokens. The number after each name is its tag on the design canvas. The props each
one takes are documented at the top of its index.js.
The examples use the longest post on the site, Understanding Modern Routing in the React
Ecosystem. Every blog post renders with these components (a post opts out with kit: false
in its front matter); how each one is wired is in project-docs/architecture.md § Post page
kit.
Page chrome
Reading progress · 02
The navbar's gradient hairline, filled as you read. Scroll this page to see it move.
Reading bar · 01
Scroll down past this point: a slim bar slides in at the top with the page title, the current section and the time left. Scroll up and it gets out of the way.
Related posts · 03
Table of contents · 13
The contents of this page, grouped into chapters. It follows you as you scroll.
Back to top · 34
Contents dock · 35
Phones only: open this page on a phone (or narrow the window below 997px) and a dark pill appears at the bottom. Tap it for the contents sheet.
Post header
Tech blog77 min read
Understanding Modern Routing in the React Ecosystem
Eyebrow · 04, title · 05, byline · 06, share · 08.
What's inside · 07
Cover · 09

The gist · 12
[Lead sentence written by /post-gist]
- [Decision or action 1]
- [Decision or action 2]
- [Decision or action 3]
Body text
Lead paragraph and highlight · 10, 11
Routing in React has evolved from simple client-side navigation into a larger architectural concern. Today, routes can define not only which component appears for a URL, but also how data is loaded, how mutations happen, how errors are handled, and how layouts are nested.
Section and sub-headings · 14, 15
What exactly were the “Remix ideas”?
Shown as paragraphs here so they don't add to this page's outline; in a post they render
h2 and h3. Hover the section heading for its copy-link chip.
Prose, inline code, glossary term · 16, 17, 27b
Remix swapped framework-specific objects for the WHATWG Fetch APIs the browser already gives you — Request, Response, FormData — so the same code runs with SSR · server-side rendering. The server renders real HTML per request; the client then hydrates it.Glossary → or in the browser. Bold stays the text colour.
Step list · 18
- Declarative ModeYou render the router
- Data ModeThe router owns the data
- Framework ModeRoutes become files
Pull quote · 36
That mapping is real — but it is a surface analogy, not the same machinery.
Definition · 23
A route is a URL-driven application boundary that owns a slice of UI, data loading, mutations, errors, and nesting.
Rich blocks
Data table · 19
On a phone each row turns into a card.
| Period | Main idea | Key features it introduced | Technologies |
|---|---|---|---|
| Pre-2020 | Client-side routing matures | client <Link> / <Route> navigation, URL params, route-based code-splitting | React Router v3/v4/v5, Reach Router, Next.js Pages Router |
| 2021 | Full-stack route modules | loader (read) + action (write), progressive enhancement | Remix |
| 2022 | Data routers enter React Router | createBrowserRouter, useNavigation / useFetcher | React Router 6.4 |
| 2022 | Server-first routing becomes mainstream | React Server Components, nested layout.tsx, loading.tsx streaming | Next.js 13 App Router |
| 2024 | Remix merges back into React Router | route modules as a framework, typed routes, the Vite plugin | React Router v7 Framework Mode |
| 2025+ | Two main models dominate | convergence — file-based routing, SSR + streaming, typed routes, server mutations on both sides | React Router Framework Mode vs Next.js App Router |
Rating pills · 20
Sample from The Problems Every Web Framework Is Trying to Solve.
| Knowledge | Carries over? |
|---|---|
| HTTP and how the web works | Yes |
| How deployment works | Mostly |
| The framework's rules and habits | Partly |
| The language's syntax and behaviour | No |
Legend:stronggoodmediumweak
Diagram frame · 21
Code frame · 22
export async function loader() {
return getUser();
}
export async function action() {
return updateUser();
}
export default function UserRoute() {
return <UserPage />;
}
Callout · 24
Disclosure · 25
They rhyme on the surface: React Router ↔ Next.js App Router
loader → async Server Component ·
action → Server Action · ErrorBoundary →
error.tsx · useNavigation →
loading.tsx · <Outlet /> →
layout.tsx
Audio player · 26
No audio file in this demo, so it shows the empty state.
Glossary · 27
- SPAsingle-page application
- One HTML document; the client router swaps views in place without full reloads.
- MPAmulti-page application
- The classic model: every navigation loads a fresh HTML document from the server.
- CSRclient-side rendering
- The browser builds the UI from a JS bundle after loading a nearly-empty shell.
- SSRserver-side rendering
- The server renders real HTML per request; the client then hydrates it.
- SSGstatic site generation
- HTML rendered once at build time and served from a CDN.
- ISRIncremental Static Regeneration
- Next.js feature that rebuilds static pages after deploy, on a schedule or on demand.
6 terms shown
End matter
References · 28
- [1]reactrouter.comReact Router docs — Picking a ModeExplains the three React Router modes: Declarative Mode, Data Mode, and Framework Mode.↩ in text
- [2]reactrouter.comReact Router docs — Framework Mode routingDescribes how routes are defined in Framework Mode.
- [3]nextjs.orgNext.js docs — App RouterDocuments the Next.js App Router model.
Tags, edit link, share · 29, 30, 08
Spotted a mistake? Suggest an edit on GitHub
Found it useful? Pass it on.
Up next · 37
In a post it sits under the table of contents and fades in past 80% of the post.
Post navigation · 31
Comments · 32
Comments
Powered by GitHub DiscussionsAsk a question or share what worked for you. Comments load from GitHub Discussions once you allow them.