<div>
of the body, like this:<div id="root">
to inject the roots of all the packages that are installed:theme
will export a root, but if any other package needs something in the DOM, it can include it also. For example, let's imagine a ShareModal package that has a modal like this:actions.share.openModal()
to interact with the theme.share
package and if there is, use its actions.share.openModal()
action when appropriate. For example in these buttons:<head>
element inside React using the <Head>
component like this:<div id="root">
of the body, they can also modify the <head>
by adding tags inside a <Head>
.