ReactCurrentOwner
packages/react/src/ReactCurrentOwner.js
import type {Fiber} from 'react-reconciler/src/ReactFiber';
/**
* 跟踪当前 owner。
*
* The current owner is the component who should own any components that are
* currently being constructed.
* 当前所有者是应该拥有当前正在构建的任何组件的组件。
*/
const ReactCurrentOwner = {
/**
* @internal
* @type {ReactComponent}
*/
current: (null: null | Fiber),
};
export default ReactCurrentOwner;