from reactpy import component, run, web
mui = web.module_from_template(
"react@^17.0.0",
"@material-ui/core@4.12.4",
fallback="⌛",
)
Button = web.export(mui, "Button")
@component
def HelloWorld():
return Button({"color": "primary", "variant": "contained"}, "Hello World!")
run(HelloWorld)
When running the following example:
I observe:
Discussed in #1105
Originally posted by AyushExel July 15, 2023

I'm following the example here https://reactpy.dev/docs/guides/escape-hatches/javascript-components.html#dynamically-loaded-components
And it works on the browser when clicking result button but on running it on my system, i get
nullpage.