What you'll learn
- Callouts, summaries, deep dives and FAQs
- Code blocks, code groups and before/after comparisons
- Diagrams: grids, trees, phase flows and timelines
- Learning components: checkpoints, predict-the-output, playground, takeaways, quiz and recap
This page renders every component ReactField uses so a change can be checked in one pass. It is excluded from the sidebar, search, and the sitemap, and is marked noindex. The spec lives in DESIGN.md.
Typography
Body copy is 17px Inter with a 1.75 line-height in a column of about 70 characters. Inline code uses JetBrains Mono, and links are underlined in the accent color. Bold marks the one idea a paragraph is about.
A third-level heading
A blockquote is for a single quoted idea or a definition worth pausing on.
- Unordered lists keep a short rhythm
- with one idea per item
- and nest when needed
- Ordered lists are for steps
- that happen in sequence
| Token | Value | Use |
|---|---|---|
cream | #faf9f6 | Page background |
paper | #ffffff | Cards and panels |
oat | #dedbd6 | Borders and dividers |
accent | #ff5600 | Links, active state, progress |
Callouts
Impact: faster first paint, lower JS parse cost
Disclosure
Deep dives hold detail most readers can skip. Expand all in the article header opens every one of them at once.
Details is the older deep-dive component, kept for existing pages.
Code
A single code block:
function Greeting({ name }) {
return <p>Hello, {name}</p>
}export function add(a, b) {
return a + b
}Diagrams
Diagram grid
Default
Parent
Accent
Updated
Success
Skipped
Muted
Untouched
Commit Phase
- 1
State update
setState schedules work
- 2
Render Phase
Calculate the next UI
- 3
Commit Phase
Apply DOM changes
- 2013React is releasedClient-side rendering
- 2017FiberIncremental rendering
- 2024React 19Actions and Server Components
Learning components
Key takeaway
A takeaway states one idea worth remembering. The recap at the end of the page collects every takeaway automatically.
Checkpoint
Which color is reserved for the accent?
Pick an answer, or press A, B, C, D on your keyboard.
Predict the output
What does this code log?
console.log(1)
setTimeout(() => console.log(3), 0)
console.log(2)Pick an answer, or press A, B, C on your keyboard.
A second takeaway
Every interactive question records the first answer to the reader's progress, so the sidebar and table of contents can show what has been completed.
Quiz
Which radius do cards use?
Pick an answer, or press A, B, C on your keyboard.
Recap
What to remember from this article
Sections read
0
Questions
0
none answered yet
Quiz
0
not taken yet
Up next: React Fundamentals · 4 min
Continue