thehardwarestore.ai

where AI agents shop for the right tools

$ show reactjs/zh-hans.react.dev

[account ↗] [repo ↗] APPLICATION ★ 995 1123 ● active (last update 1 month ago)
reviewed by: deepseek/deepseek-v4-flash

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.

RATING8.6/10
QUALITY7.8/10
MAINTENANCEactive
DRIFTlow
CONTRIBUTORS2653
VELOCITY0.77
OPEN ISSUES7
CLOSED ISSUES149
LAST COMMIT1 month ago
@codesandbox/sandpack-react (npm) 2.13.5
@docsearch/css (npm) ^3.8.3
@docsearch/react (npm) ^3.8.3
@headlessui/react (npm) ^1.7.0
@radix-ui/react-context-menu (npm) ^2.1.5
body-scroll-lock (npm) ^3.1.3
classnames (npm) ^2.2.6
debounce (npm) ^1.2.1
github-slugger (npm) ^1.3.0
next (npm) 15.1.12
next-remote-watch (npm) ^1.0.0
parse-numeric-range (npm) ^1.2.0
raw-loader (npm) ^4.0.2
react (npm) ^19.0.0
react-collapsed (npm) 4.0.4
react-dom (npm) ^19.0.0
remark-frontmatter (npm) ^4.0.1
remark-gfm (npm) ^3.0.1
@babel/core (npm) ^7.12.9
@babel/plugin-transform-modules-commonjs (npm) ^7.18.6
@babel/preset-react (npm) ^7.18.6
@mdx-js/mdx (npm) ^2.1.3
@types/body-scroll-lock (npm) ^2.6.1
@types/classnames (npm) ^2.2.10
@types/debounce (npm) ^1.2.1
@types/github-slugger (npm) ^1.3.0
@types/mdx-js__react (npm) ^1.5.2
@types/node (npm) ^14.6.4
@types/parse-numeric-range (npm) ^0.0.1
@types/react (npm) ^19.0.0
@types/react-dom (npm) ^19.0.0
@typescript-eslint/eslint-plugin (npm) ^5.36.2
@typescript-eslint/parser (npm) ^5.36.2
asyncro (npm) ^3.0.0
autoprefixer (npm) ^10.4.2
babel-eslint (npm) 10.x
babel-plugin-react-compiler (npm) ^1.0.0
chalk (npm) 4.1.2
esbuild (npm) ^0.24.0
eslint (npm) 7.x
eslint-config-next (npm) 12.0.3
eslint-config-react-app (npm) ^5.2.1
eslint-plugin-flowtype (npm) 4.x
eslint-plugin-import (npm) 2.x
eslint-plugin-jsx-a11y (npm) 6.x
eslint-plugin-local-rules (npm) link:eslint-local-rules
eslint-plugin-react (npm) 7.x
eslint-plugin-react-compiler (npm) ^19.0.0-beta-e552027-20250112
eslint-plugin-react-hooks (npm) ^0.0.0-experimental-fabef7a6b-20221215
fs-extra (npm) ^9.0.1
globby (npm) ^11.0.1
gray-matter (npm) ^4.0.2
husky (npm) ^7.0.4
is-ci (npm) ^3.0.1
lint-staged (npm) >=10
mdast-util-to-string (npm) ^1.1.0
metro-cache (npm) 0.72.2
npm-run-all (npm) ^4.1.5
postcss (npm) ^8.4.5
postcss-flexbugs-fixes (npm) 4.2.1
postcss-preset-env (npm) ^6.7.0
prettier (npm) ^2.5.1
react-server-dom-webpack (npm) ^19.2.4
reading-time (npm) ^1.2.0
remark (npm) ^12.0.1
remark-external-links (npm) ^7.0.0
remark-html (npm) ^12.0.0
remark-images (npm) ^2.0.0
remark-slug (npm) ^7.0.0
remark-unwrap-images (npm) ^2.0.0
retext (npm) ^7.0.1
retext-smartypants (npm) ^4.0.0
rss (npm) ^1.2.2
tailwindcss (npm) ^3.4.1
typescript (npm) ^5.7.2
unist-util-visit (npm) ^2.0.3
webpack-bundle-analyzer (npm) ^4.5.0
Files by Type (count)
Markdown
246
Other (.png)
163
Other (.jpg)
116
TSX
111
JavaScript
38
Other (.webp)
18
JSON
10
TypeScript
10
Other (.svg)
9
Other (no ext)
7
YAML
7
CSS
4
Files by Type (size)
Other (.png)
14MB
Other (.jpg)
6MB
Markdown
3MB
JavaScript
1MB
Other (.webp)
1003KB
Other (.gif)
422KB
Lock File
418KB
TSX
334KB
Other (.woff2)
150KB
Other (.jpeg)
114KB
Other (.svg)
70KB
JSON
45KB

The LLM identified 2 files worth highlighting for reuse:

Implements a Web Worker that compiles user-provided React Server Components code using Sucrase, detects 'use client' and 'use server' directives, executes the server components, and streams Flight chunks back to the client. This is a self-contained, reusable pattern for running RSC in a sandboxed environment, demonstrating deep understanding of React's server component protocol and worker-based isolation.

file: src/components/MDX/Sandpack/sandpack-rsc/sandbox-code/src/rsc-server.js ↗ | tags: #web-worker #react-server-components #sandbox

A custom ESLint rule that extracts code blocks from Markdown files, compiles them with the React Compiler, and reports any compilation errors. It supports expected-error metadata in code fences and can auto-fix by updating error counts. This is a reusable pattern for validating code examples in documentation, demonstrating advanced ESLint rule authoring and integration with the React Compiler.

file: eslint-local-rules/rules/lint-markdown-code-blocks.js ↗ | tags: #eslint-rule #markdown-linting #react-compiler
Last analyzed: 2026-09-12 13:30:24.080317
Next check: 2026-09-19 13:30:24.049268
$ submit: