Interface: UseReactOptions
Interface: UseReactOptions
UseReact decorator options.
Extends
Partial
<UseReactConfig
>
Properties
adapterErrorPages?
optional adapterErrorPages: Record<string, MetaAdapterErrorPage<unknown, unknown, unknown>>;
A map of error pages for adapter-level errors.
Inherited from
Partial.adapterErrorPages
componentEventHandler?
optional componentEventHandler: MetaPage<ReactIncomingEvent, unknown>;
Handles incoming events for the root React component.
Inherited from
Partial.componentEventHandler
errorPages?
optional errorPages: Record<string, MetaErrorPage<ReactIncomingEvent, unknown>>;
A map of error pages for specific components.
Inherited from
Partial.errorPages
htmlTemplateContent?
optional htmlTemplateContent: string;
The content of the HTML template as a string. This can be used to define the structure of the HTML document. This is useful for inline templates or when the template is dynamically generated. Note: This is not a file path, but the actual HTML content.
Inherited from
Partial.htmlTemplateContent
ignorePlatforms?
optional ignorePlatforms: string[];
A list of platforms to ignore for React rendering. This can be used to disable React rendering on specific platforms. For example, you might want to ignore rendering on CLI platforms.
Inherited from
Partial.ignorePlatforms
layout?
optional layout: Record<string, MetaPageLayout>;
A map of layout components with their respective event handlers.
Inherited from
Partial.layout
rootElementId?
optional rootElementId: string;
The ID of the root DOM element where React will be mounted.
Inherited from
Partial.rootElementId