Minor docs edits for router API (#12404)

This commit is contained in:
Shu Uesugi 2020-05-01 21:20:09 -07:00 committed by GitHub
parent 960c18da53
commit b230627614
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -186,7 +186,7 @@ If the function you pass into `beforePopState` returns `false`, `Router` will no
### Router.back
Navigate back in history, equivalent to clicking the back button. It executes `window.history.back()`.
Navigate back in history. Equivalent to clicking the browsers back button. It executes `window.history.back()`.
```jsx
import Router from 'next/router'
@ -196,7 +196,7 @@ Router.back()
### Router.reload
Reload the current URL, equivalent to clicking the refresh button. It executes `window.location.reload()`.
Reload the current URL. Equivalent to clicking the browsers refresh button. It executes `window.location.reload()`.
```jsx
import Router from 'next/router'