Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
neriyaco committed Apr 9, 2024
1 parent 4316432 commit b285df5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ class Person(Component):
on_submit=self.save_age
)

def set_age(self, event_data: JSXChangeEvent):
def set_age(self, event_data: ChangeEvent):
self.age = event_data.value

def save_age(self, event_data: JSXSubmitEvent):
def save_age(self, event_data: SubmitEvent):
user = get_user()
user.age = self.age
save(user)
Expand Down

0 comments on commit b285df5

Please sign in to comment.