Page History
...
Code Block | ||
---|---|---|
| ||
const COMPONENTS = { 'sample-light-module:components/title': Title, 'sample-light-module:components/text-image': TextImage, 'sample-light-module:components/nested': Nested, 'sample-light-module:components/navigation': Navigation }; |
Additionally, to to actually set the mappings, the COMPONENTS
object must be passed as an argument of <Page directive>
:
Code Block | ||
---|---|---|
| ||
<Page templateDefinitions={templateDefinitions} content={content} componentMappings={COMPONENTS}> |
Overview
Content Tools