ReactCurrentOwner
packages/react/src/ReactCurrentOwner.js
import type {Fiber} from 'react-reconciler/src/ReactFiber';
/** * trace current owner. * * The current owner is the component who should own any components that are * currently being constructed. * The current owner is the component that should own any components that are currently being built. * /
const ReactCurrentOwner = {
/** * @internal * @type {ReactComponent} */
current: (null: null | Fiber),
};
export default ReactCurrentOwner;
Copy the code