Home > @plasmicapp/loader-react > PlasmicComponentLoader > registerComponent

PlasmicComponentLoader.registerComponent() method

[[deprecated]] Please use substituteComponent instead for component substitution, or the other registerComponent overload to register code components to be used on Plasmic Editor.

Signature:

registerComponent<T extends React.ComponentType<any>>(component: T, name: ComponentLookupSpec): void;

Parameters

Parameter Type Description
component T
name ComponentLookupSpec

Returns:

void