Add additional root placeholders in a code-first JSS sample app
Version: 23.x
Markdown versionBy default, JSS applications define only one root placeholder in the Layout component, but you can add multiple root placeholders if your use case requires it.
To define multiple root placeholders:
- Add additional placeholder instances in your JSS
Layoutcomponent, giving each placeholder a unique name. - Add the placeholder settings items to the manifest.
- In the
package.jsonfile, in theconfigoptions, list the placeholders in therootPlaceholdersarray.
If you have suggestions for improving this article, let us know!