This file provides guidance to Claude Code when working with this repository.
This is the React documentation website (react.dev), built with Next.js 15.1.11 and React 19. Documentation is written in MDX format.
yarn build # Production build
yarn lint # Run ESLint
yarn lint:fix # Auto-fix lint issues
yarn tsc # TypeScript type checking
yarn check-all # Run prettier, lint:fix, tsc, and rss togethersrc/
βββ content/ # Documentation content (MDX files)
β βββ learn/ # Tutorial/learning content
β βββ reference/ # API reference docs
β βββ blog/ # Blog posts
β βββ community/ # Community pages
βββ components/ # React components
βββ pages/ # Next.js pages
βββ hooks/ # Custom React hooks
βββ utils/ # Utility functions
βββ styles/ # CSS/Tailwind styles
- Functional components only
- Tailwind CSS for styling
When editing files in src/content/, the appropriate skill will be auto-suggested:
src/content/learn/- Learn page structure and tonesrc/content/reference/- Reference page structure and tone
For MDX components (DeepDive, Pitfall, Note, etc.), invoke /docs-components.
For Sandpack code examples, invoke /docs-sandpack.
See .claude/docs/react-docs-patterns.md for comprehensive style guidelines.
Prettier is used for formatting (config in .prettierrc).