旧版 React API

这些 API 是从 react 包导出的,但不建议在新编写的代码中使用。有关建议的替代方案,请参阅链接的各个 API 页面。

¥These APIs are exported from the react package, but they are not recommended for use in newly written code. See the linked individual API pages for the suggested alternatives.


旧版 API

¥Legacy APIs


已删除的 API

¥Removed APIs

这些 API 在 React 19 中被删除:

¥These APIs were removed in React 19: