Public Wiki242,936View on GitHub
Want facebook/react knowledge in your AI?

React

This is the React monorepo — the canonical source code for React, React DOM, React Server Components (Flight), the React Compiler, and the Scheduler. It contains the complete implementation of React's fiber reconciler, concurrent rendering, streaming SSR (Fizz), the RSC wire protocol, and an optimizing compiler (babel-plugin-react-compiler) that automatically memoizes React components and hooks.

Tech Stack

ReactTypeScriptJestExpress.jsNext.jsTailwind CSSZod

Key Features

  • Fiber Reconciler
  • React Public API & Hooks
  • React DOM & Event System
  • Fizz Streaming SSR
  • React Server Components (Flight Protocol)
  • RSC Bundler Integrations
  • Cooperative Task Scheduler
  • React Compiler (babel-plugin-react-compiler)
  • Compiler HIR & SSA Pipeline
  • Compiler Validation Passes
  • Feature Flags & Multi-Channel Releases
  • DevTools Build & Release Automation

Coding Conventions

Standards and patterns used in this codebase

naming

File naming uses: kebab-case, camelCase, PascalCase (for components/classes)

ReactVersions.js, babel.config-react-compiler.js, babel.config.js, dangerfile.js, anonymize.js
ReactVersions.jsbabel.config-react-compiler.jsbabel.config.js
configuration

Configuration is centralized in config files

Config files: babel.config-react-compiler.js, babel.config.js
babel.config-react-compiler.jsbabel.config.jsscripts/devtools/configuration.js
file-organization

Standard project structure

Code is organized by feature/module
ReactVersions.jsbabel.config-react-compiler.jsbabel.config.js