add rx event

This commit is contained in:
Khaleel Al-Adhami 2024-10-11 17:24:04 -07:00
parent a0a5dcb831
commit 76261e0e3b

View File

@ -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