x
from beepy import Tag, mount, state, on
class IncrementButton(Tag, name='button'):
count = state(0)
def click(self, event):
self.count += 1
def content(self):
return f'Count: {self.count}'
mount(IncrementButton(), '#root')