Skip to content

Commit

Permalink
docs: fix the usage of history.listen
Browse files Browse the repository at this point in the history
  • Loading branch information
ThornWu committed Mar 15, 2022
1 parent 86d12b9 commit 76e1ed8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions contributors.yml
Expand Up @@ -46,3 +46,4 @@
- turansky
- underager
- vijaypushkin
- ThornWu
2 changes: 1 addition & 1 deletion docs/getting-started/concepts.md
Expand Up @@ -127,7 +127,7 @@ That's where a React Router specific `history` object comes into play. It provid

```js
let history = createBrowserHistory();
history.listen((location, action) => {
history.listen(({location, action}) => {
// this is called whenever new locations come in
// the action is POP, PUSH, or REPLACE
});
Expand Down

0 comments on commit 76e1ed8

Please sign in to comment.