add rx event
This commit is contained in:
parent
a0a5dcb831
commit
76261e0e3b
@ -58,6 +58,7 @@ def ComponentStateApp():
|
|||||||
class _Counter(rx.State):
|
class _Counter(rx.State):
|
||||||
count: int = 0
|
count: int = 0
|
||||||
|
|
||||||
|
@rx.event
|
||||||
def increment(self):
|
def increment(self):
|
||||||
self.count += 1
|
self.count += 1
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user