Human-readable name for debugging/logging
OptionalOnCalled during runtime shutdown (ReactRootManager.cleanup()). Use this to disconnect observers, remove injected DOM elements, clear timers, etc.
OptionalOnCalled once, when the very first React root is created. Use this for one-time global setup (e.g., injecting global styles, creating MutationObservers, etc.).
OptionalOnCalled after every root is created (including the first).
OptionalOnCalled after a root is unmounted.
A runtime hook that can be registered to execute at key lifecycle points in the React root manager. All methods are optional — implement only the lifecycle points you need.