Skip to content

PortableComponent type

Home > @rimitive/view > PortableComponent

A portable component - a function that receives a service and returns a factory that produces a RefSpec when called.

Signature:

type PortableComponent<TSvc, TElement> = (svc: TSvc) => () => RefSpec<TElement>;

References: RefSpec