
React 官方中文文档
React is the library for web and native user interfaces. Build user interfaces out of individual pieces called components written in JavaScript. React is designed to let you seamlessly …
React Compiler – React 中文文档
React Compiler 是一个处于 RC 阶段的新的编译器,我们将其开源以获取社区反馈。现在我们建议所有人都使用编译器。 最新的 RC 版本发布于 @rc 标签,每日实验版本发布于 …
Introduction – React 中文文档
React Compiler is a new build-time tool that automatically optimizes your React app. It works with plain JavaScript, and understands the Rules of React, so you don’t need to rewrite any code to …
target – React 中文文档
target Configures the React version compatibility for the compiled output.
Compiling Libraries – React 中文文档
Why Ship Compiled Code? Setting Up Compilation Backwards Compatibility 1. Install the runtime package 2. Configure the target version Testing Strategy Troubleshooting Library doesn’t work …
Debugging and Troubleshooting – React 中文文档
This guide helps you identify and fix issues when using React Compiler. Learn how to debug compilation problems and resolve common issues.
'use memo' directive – React 中文文档
注意 In most cases, you don’t need "use memo". It’s primarily needed in annotation mode where you must explicitly mark functions for optimization. In infer mode, the compiler automatically …
Configuration – React 中文文档
Compilation Control These options control what the compiler optimizes and how it selects components and hooks to compile. compilationMode controls the strategy for selecting …
'use no memo' directive – React 中文文档
"use no memo" Add "use no memo" at the beginning of a function to prevent React Compiler optimization.
Directives – React 中文文档
Overview React Compiler directives provide fine-grained control over which functions are optimized by the compiler. They are string literals placed at the beginning of a function body or …