Mount

Mount renders children that may be a function returning a value or a promise. While the promise resolves, it shows fallback and reports errors via onError.

Basic usage#

Return a React node or a promise from the children function to defer rendering until it resolves.

Error handling#

Use onError to capture thrown errors or rejected promises, and show a safe fallback UI.

DOM-preserving variants#

Mount.div and other tag variants keep a wrapper element while the resolved content swaps in.

Components - Control Flow Utilities | ilokesto - React Library Collection