From 29a55f2d5b6bfdd4efa154a3e479ea3758b21e63 Mon Sep 17 00:00:00 2001 From: Tanner Linsley Date: Sat, 24 Oct 2026 02:51:13 -0600 Subject: [PATCH] docs: make Redact landing copy conversational --- src/components/landing/RedactLanding.tsx | 91 ++++++++---------------- 1 file changed, 31 insertions(+), 60 deletions(-) diff --git a/src/components/landing/RedactLanding.tsx b/src/components/landing/RedactLanding.tsx index d46a1626d..6e062eb0c 100644 --- a/src/components/landing/RedactLanding.tsx +++ b/src/components/landing/RedactLanding.tsx @@ -13,18 +13,9 @@ export default function RedactLanding() { -
- - React - {' '} - Redact -
- smaller default runtime than React + smaller than React in our default-runtime benchmark
-

- Redact 0.1.0 measurements. Savings compare all client exports with - React 19.3.0. Nano disables all optional features. App sizes vary. -

{`import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' @@ -77,10 +64,27 @@ export default defineConfig({ >
- +
+ +

+ We trade concurrent scheduling for a smaller, synchronous runtime. + Streaming SSR, hydration, and Suspense are still on board. +

+ + API differences ↗ + +
{`import { useState } from 'react' @@ -98,8 +102,8 @@ export function Counter() {
@@ -111,59 +115,26 @@ redact({ // All optional features off, then context enabled redact({ preset: 'nano', features: { context: true } })`} -

- Disabling features changes behavior. Nano is not a - full-compatibility preset, and feature size savings are not - additive. -

- Streaming SSR, hydration, Suspense, and Fast Refresh are - supported. Server Components stay on upstream React in the RSC - environment. -

- - Read the compatibility guide - -

- Keep your React DevTools, too. Inspect components and hooks, edit - props and state, and profile commits in development. DevTools adds - zero bytes to production bundles. The public Profiler callback - remains a no-op. + Debugging tools belong in development, so we leave them out of + your production build. All of this adds zero bytes to what your + users download.

- DevTools checks and timings ↗ - -

- Performance depends on the workload. Published measurements - include faster state updates and slower hydration and Suspense - retries, they do not establish whole-app speedups. -

- - Performance measurements ↗ + React DevTools support ↗