Skip to content

Commit 1d33c65

Browse files
committed
Use ReactJS event naming conventions
1 parent 0469615 commit 1d33c65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/reactpy_router/routers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def router(
7070
]
7171
return ConnectionContext(
7272
History( # type: ignore
73-
{"on_change": lambda event: set_location(Location(**event))}
73+
{"onChange": lambda event: set_location(Location(**event))}
7474
),
7575
html._(route_elements),
7676
value=Connection(old_conn.scope, location, old_conn.carrier),

0 commit comments

Comments
 (0)