For example, when you open example.html, you should get a 'hello' alert box (but you currently get nothing).
This effectively means you can use things like shiny.ui.panel_absolute(draggable=True) inside a ui.page_navbar (because it's all one big JSX component
from htmltools import jsx_tag_create, tags, HTML, HTMLDocument
MyComponent = jsx_tag_create("MyComponent")
HTMLDocument(
tags.script(HTML(
"function MyComponent(props) { return React.createElement('h4', props, 'Hello World') }"
)),
MyComponent(
tags.script("alert('hello')"),
style={"color": "red"}
)
).save_html("example.html")