ViewOutletProps interface

Module @runic-artifex/react in @runic-artifex/react 0.23.0

interface ViewOutletProps<R extends PageReference>

No documentation.

Properties

content

readonly content: R | null | undefined;

The presented reference, such as state.main.

registry

readonly registry: ViewRegistry<R>;

No documentation.

fallback

readonly fallback?: ReactNode;

Rendered while there is no content. Defaults to nothing.

missing

readonly missing?: (content: R) => ReactNode;

Renders a reference whose kind has no registered component, for example localized text. Without it, a development build renders an English <p role="alert"> and a production build renders nothing and reports the kind through the page's error reporting.