Head
A component that manager the "head" tag of the page to avoid duplicate tags, such as titles.
@reacton.component
def Head(children: List[reacton.core.Element] = []):
...
Currently only supports the title tag as child, e.g.:
import solara
@solara.component
def Page():
with solara.VBox() as main:
MyAwesomeComponent()
with solara.Head():
solara.Title("My page title")
return main
Example
A Head component does not render somesome visual on the page, but it is used to avoid duplicate tags, such as titles.