react简介

Searching…

react.docschina.org

React 官方中文文档

3 days ago · 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 …

react.docschina.org

Debugging and Troubleshooting – React 中文文档

4 days ago · React Compiler is designed to handle code that follows the Rules of React. When it encounters code that might break these rules, it safely skips optimization rather than risk …

react.docschina.org

React Compiler – React 中文文档

Nov 12, 2025 · React Compiler 是一个新编译器,我们将其开源以获取社区的早期反馈。 它是一个仅在构建时使用的工具,可以自动优化你的 React 应用程序。 它可以与纯 JavaScript 一起使 …

react.docschina.org

Incremental Adoption – React 中文文档

5 days ago · React Compiler can be adopted incrementally, allowing you to try it on specific parts of your codebase first. This guide shows you how to gradually roll out the compiler in existing …

react.docschina.org

在网站中添加 React – React 中文文档

Nov 11, 2025 · 1 分钟拥有 React React 从一开始就是为渐进式开发而生。 大多数网站并没有(也不需要)完全使用 React 进行构建。 本小节中,我们将向你展示如何在现有 HTML 页面中添 …

react.docschina.org

prerenderToNodeStream – React 中文文档

Nov 11, 2025 · This will produce the initial non-interactive HTML output of your React components. On the client, you will need to call hydrateRoot to hydrate that server-generated …

react.docschina.org

Directives – React 中文文档

Nov 12, 2025 · 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 …

react.docschina.org

Configuration – React 中文文档

6 days ago · React version configuration ensures the compiler generates code compatible with your React version. target specifies which React version you’re using (17, 18, or 19).