跳到主要内容

React DOM fiber

一、作用

二、内部共享

备注
// For classic WWW builds, include a few internals that are already in use.
// 对于经典的 WWW 构建,包含一些已经在使用的内部内容。
Object.assign(Internals as any, {
ReactBrowserEventEmitter: {
isEnabled,
},
});

export { Internals as __DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE };

三、React DOM 客户端 fiber

备注
export {
createPortal,
flushSync,
unstable_createEventHandle,
// DO NOT USE: Temporarily exposed to migrate off of Scheduler.runWithPriority.
// 禁止使用:暂时暴露用于从 Scheduler.runWithPriority 迁移。
unstable_runWithPriority,
useFormStatus,
useFormState,
requestFormReset,
prefetchDNS,
preconnect,
preload,
preloadModule,
preinit,
preinitModule,
version,
} from './client/ReactDOMClientFB';

四、ReactDOM 根 fiber

备注
export {
createRoot,
hydrateRoot,
render,
unstable_batchedUpdates,
findDOMNode,
unmountComponentAtNode,
} from './client/ReactDOMRootFB';