Skip to content

Example app for Dynamically Loaded Components returns null #1106

Closed as not planned
@rmorshea

Description

@rmorshea

When running the following example:

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)

I observe:

image

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 null page.
Screenshot 2023-07-15 at 8 20 12 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority-2-moderateShould be resolved on a reasonable timeline.release-patchWarrents a patch release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions