Wrap a synchronous or asynchronous render function with an error boundary.
Target DOM element that will receive the rendered output.
Function (sync or async) that populates container.
container
Human-readable message shown in the error card.
Optional localised labels for the loading/error states.
Wrap a synchronous or asynchronous render function with an error boundary.