React 版本
它存在的目的是作为占位符,以便 DevTools 可以支持不同版本之间的工作标签更改。
当我们下次发布版本时,请更新 backend/renderer.js 中相应的 TODO
TODO: 这个模块既被发布脚本使用,也用于在运行时暴露版本信息。
我们应该改为在构建过程中注入版本号,并使用 ReactVersions.js 模块作为唯一的可信来源。
// TODO: this is special because it gets imported during build.
// 待办:这是特殊的,因为它在构建期间会被导入。
//
// It exists as a placeholder so that DevTools can support work tag changes between releases.
// When we next publish a release, update the matching TODO in backend/renderer.js
// TODO: This module is used both by the release scripts and to expose a version
// at runtime. We should instead inject the version number as part of the build
// process, and use the ReactVersions.js module as the single source of truth.
export default '19.3.0';