Py.Cafe

maartenbreddels/

solara-click-counter-0

Solara Click Counter

DocsPricing
  • app.py
  • requirements.txt
  • test.vue
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import solara

# reactive variables will trigger a component rerender
# when changed.
# When you change the default (now 0), hit the embedded browser
# refresh button to reset the state
clicks = solara.reactive(0)


@solara.component_vue("test.vue")
def Test():
    ...

@solara.component
def Page():
    Test()