- Docs
- Guides
- Server rendering
Server rendering
Every component renders on the server. These need no JavaScript at all.
- Server-safe
- 26No client code
- The rest
- "use client"Carried by the library
01 — Server-safe
No JavaScript at all.
AvatarItem, Badge, Box, Breadcrumb, Card, CodeBlock, EmptyState, Grid, Heading, Inline, InstructionList, Link, LinkButton, PageHeader, ProviderButtonGroup, QRCode, Separator, Skeleton, SkipLink, Spinner, Stack, Stat, StateRuler, Text, Timeline, VisuallyHidden.
The rest carry their own "use client": a Server Component renders them, and they hydrate. Server-safe components can't read QeetrixProvider's strings: Breadcrumb and Link take theirs through props.
02 — The same HTML
Time, from the request.
What changes with the clock renders differently on the server and in the browser, and React warns. Pass the moment in.
import { formatRelativeTime } from "@qeetrix/react";
// The server and the browser render at different moments: pass now, so both write "2 minutes ago".
formatRelativeTime(user.lastSignIn, "en-IN", requestTime);// A calendar's today, from the request, so the server's month is the browser's.
<Calendar today={today} … />03 — The scheme before paint
One script, from Qeetrix.
colorSchemeScript() in the head sets the saved scheme before the first paint; QeetrixProvider's storageKey saves the choice under the same key. Each framework guide puts it in place: Next.js, TanStack Start, Vite.