registerComponent
Overview
Registers a new component with the given name.
Signature
registerComponent(componentName, componentConfig)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| componentName | string | yes | The name of the component. |
| componentConfig | ComponentConfig | yes | The default variant and spot names for the component. |
Returns
void
Throws
- If the component configuration is invalid.
Source
client/lib/stores/storeTheme.js:96