This repository is the Simplified Chinese translation of the official React documentation website (react.dev). It is a Next.js static site (Pages Router) that serves MDX-based documentation with interactive code examples via Sandpack, including a sophisticated React Server Components (RSC) sandbox that runs user code in a Web Worker inside an iframe. The site features Algolia DocSearch, RSS feed generation, an error decoder page that fetches React error codes from GitHub, and custom ESLint rules that lint markdown code blocks using the React Compiler. The architecture is a standard Next.js static site with custom remark/rehype plugins, a component library for MDX (challenges, diagrams, callouts, etc.), and a layout system with sidebar navigation and table of contents. The repository is actively maintained and synchronized with the upstream react.dev repository, with translations managed via a dedicated process.
The reactjs/ja.react.dev repository is the official Japanese translation of the React documentation site (react.dev). It is a Next.js (Pages Router) application that compiles MDX content into static pages with dynamic interactive features. The architecture uses Next.js for static generation, with custom React components (MDX, Layout, Icons), a sophisticated Sandpack integration for live code playgrounds (including a custom React Server Components sandbox inside an iframe), Algolia DocSearch, Tailwind CSS styling, and textlint for Japanese proofreading. Key entry points include the catch-all page `src/pages/[[...markdownPath]].js` that renders all documentation, and the API route `src/pages/api/md/[...path].ts` for serving raw markdown. The site also generates RSS feeds, runs a dead link checker, and uses custom ESLint rules to lint React code blocks within markdown. External dependencies include React 19, Next.js 15, Sandpack, MDX, and various remark/rehype plugins. While the codebase is well-organized and demonstrates strong engineering practices (TypeScript, custom tooling, CI/CD), its components are tightly coupled to the documentation site's layout and content structure, limiting direct reuse outside of similar documentation projects.