You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A better code example for the quickstart would be the following code.
I understand you support many backend
Auto-reloading works ! The most important feature when you code
# main.pyfromreactpyimportcomponent, htmlfromstarlette.applicationsimportStarlettefromreactpy.backend.starletteimportconfigure@componentdefHelloWorld():
returnhtml.h1("Hello, world !")
app=Starlette()
configure(app, HelloWorld)
# Run it with : uvicorn--reloadmain:app
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
A better code example for the quickstart would be the following code.
Beta Was this translation helpful? Give feedback.
All reactions