docs-sandpack
Sandpack Patterns
Quick Start Template
Most examples are single-file. Copy this and modify:
<Sandpack>
` ` `js
import { useState } from 'react';
export default function Example() {
const [value, setValue] = useState(0);
More from reactjs/react.dev
react-expert
Use when researching React APIs or concepts for documentation. Use when you need authoritative usage examples, caveats, warnings, or errors for a React feature.
915docs-components
Comprehensive MDX component patterns (Note, Pitfall, DeepDive, Recipes, etc.) for all documentation types. Authoritative source for component usage, examples, and heading conventions.
59review-docs
Use when reviewing React documentation for structure, components, and style compliance
52docs-writer-learn
Use when writing or editing files in src/content/learn/. Provides Learn page structure and tone.
48docs-writer-blog
Use when writing or editing files in src/content/blog/. Provides blog post structure and conventions.
47docs-writer-reference
Reference page structure, templates, and writing patterns for src/content/reference/. For components, see /docs-components. For code examples, see /docs-sandpack.
47