What is this?
This repository holds the source code and content for react.dev, the official documentation website for the React library, built with Next.js.
Is this the React library itself or just its docs?
It's just the documentation website — the markdown content and Next.js frontend that explain how to use React. The actual React library source lives in a separate repository.
How do I run the docs site locally?
Clone the repo, run 'yarn' inside the react.dev folder to install dependencies, then 'yarn dev' to start the Next.js-powered dev server and open it in your browser.
What do I need installed before I can build this?
Git, Node.js v16.8.0 or newer, and the Yarn package manager.
Will my content edits show up instantly while I work on them?
Changes to React components in src and markdown files in content hot-reload automatically, but if you're touching plugins you may need to delete the .cache folder and restart the dev server.
Who is this repo meant for?
It's aimed at contributors who want to fix or improve the React documentation, not at people just looking to use React in a project.
Can I help translate the docs into another language?
Yes, there is an ongoing community translation effort for react.dev that contributors can join, separate from the main English content.
What makes the code examples on react.dev interactive?
The site embeds Sandpack (via @codesandbox/sandpack-react), which renders live, editable React code examples directly inside the documentation pages.
What are similar projects?
content, 30-Days-Of-JavaScript, cheatsheets, react-redux-links, opensource.guide, youmightnotneedjquery, awesome-angular, zh-google-styleguide