Răsfoiți Sursa

update templates to remove deprecation warning (#1437)

Thomas Brandého 1 an în urmă
părinte
comite
43220438b6

+ 1 - 1
reflex/.templates/apps/counter/counter.py

@@ -48,6 +48,6 @@ def index() -> rx.Component:
 
 
 # Add state and page to the app.
-app = rx.App(state=State)
+app = rx.App()
 app.add_page(index, title="Counter")
 app.compile()

+ 1 - 1
reflex/.templates/apps/default/default.py

@@ -40,6 +40,6 @@ def index() -> rx.Component:
 
 
 # Add state and page to the app.
-app = rx.App(state=State)
+app = rx.App()
 app.add_page(index)
 app.compile()