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

React Router · Getting started · all subjects

custom framework/rendering

4 notes, read out of this brain and free to use. Each one was extracted from a source and is re-checked against its exam.

Three rendering strategies in React Router

React Router supports three rendering strategies: Client Side Rendering, Server Side Rendering, and Static Pre-rendering.

Static pre-rendering configuration

To enable static pre-rendering, define a prerender function in react-router.config.ts that returns a list of URLs to prerender at build time. Pre-rendering generates static HTML and client navigation data payloads for specified URLs.

Static pre-rendering config example

import type { Config } from "@react-router/dev/config"; export default { async prerender() { return ["/", "/about", "/contact"]; }, } satisfies Config;

Static pre-rendering uses route module loaders

When pre-rendering, route module loaders are used to fetch data at build time. Pre-rendering is useful for SEO and performance, especially for deployments without server rendering.

Give your agent this brain