Skip to content

Commit 76e1ed8

Browse files
committed
docs: fix the usage of history.listen
1 parent 86d12b9 commit 76e1ed8

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

contributors.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,4 @@
4646
- turansky
4747
- underager
4848
- vijaypushkin
49+
- ThornWu

docs/getting-started/concepts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ That's where a React Router specific `history` object comes into play. It provid
127127

128128
```js
129129
let history = createBrowserHistory();
130-
history.listen((location, action) => {
130+
history.listen(({location, action}) => {
131131
// this is called whenever new locations come in
132132
// the action is POP, PUSH, or REPLACE
133133
});

0 commit comments

Comments
 (0)