reactpy icon indicating copy to clipboard operation
reactpy copied to clipboard

Update doc for 'running-reactpy' page

Open dridk opened this issue 1 year ago • 0 comments

Current Situation

From here : https://reactpy.dev/docs/guides/getting-started/running-reactpy.html Code example doesn't work . Backend import are missing.

from reactpy import component, html
from reactpy.backend.starlette import configure

# ==> missing : import Starlete

@component
def HelloWorld():
    return html.h1("Hello, world!")


app = Starlette()
configure(app, HelloWorld)

Proposed Actions

Try do fix it myself. But the doc example from the repository seems ok.

dridk avatar Sep 11 '24 15:09 dridk