-
-
Notifications
You must be signed in to change notification settings - Fork 328
-
Beta Was this translation helpful? Give feedback.
All reactions
Replies: 1 comment 2 replies
-
Development notes
I use fastapi backend.
navbar.py
from reactpy import component, html from reactpy.backend.fastapi import configure, Options from reactpy_router import route, simple from fastapi import FastAPI HEADER_TITLE = 'ReactPy-Navbar' ... app = FastAPI() configure(app, root, options=Options(head=html.head(html.title(HEADER_TITLE))))
and normally just use the following requirements.txt content.
reactpy
reactpy-router
and run the app with
uvicorn navbar:app --reload
That requirements.txt has an issue though, it cannot see reactpy_router.
The solution is to use
reactpy[fastpapi]
in the requirements.txt
I am on windows 10 OS,
Beta Was this translation helpful? Give feedback.
All reactions
2 replies
-
It would be really cool to have some of this released as a reactpy-bootstrap package!
Beta Was this translation helpful? Give feedback.
All reactions
-
Not this time. But I will.
Beta Was this translation helpful? Give feedback.
All reactions
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment