Skip to content

registerComponent ​

Overview ​

Registers a new component with the given name.

Signature ​

registerComponent(componentName, componentConfig)

Parameters ​

NameTypeRequiredDescription
componentNamestringyesThe name of the component.
componentConfigComponentConfigyesThe default variant and spot names for the component.

Returns ​

void

Throws ​

  • If the component configuration is invalid.

Source ​

client/lib/stores/storeTheme.js:96