Skip to main content
A component module’s exports (default, schema, loader) match this shape, so import * as Hero from './hero' can be listed directly in the components array passed to WeaverseClient and WeaverseHydrogenRoot.

Properties

ForwardRefExoticComponent<T> | (props: T) => Element
required
React renderer exported by the component module.
(args: WeaverseComponentLoaderArgs) => Promise<unknown>
Type: WeaverseComponentLoaderArgsOptional data loader function for server-side data fetching.
required
Schema exported by the component module.