Unverified Commit b2306276 authored by Shu Uesugi's avatar Shu Uesugi Committed by GitHub

Minor docs edits for router API (#12404)

parent 960c18da
...@@ -186,7 +186,7 @@ If the function you pass into `beforePopState` returns `false`, `Router` will no ...@@ -186,7 +186,7 @@ If the function you pass into `beforePopState` returns `false`, `Router` will no
### Router.back ### 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 browser’s back button. It executes `window.history.back()`.
```jsx ```jsx
import Router from 'next/router' import Router from 'next/router'
...@@ -196,7 +196,7 @@ Router.back() ...@@ -196,7 +196,7 @@ Router.back()
### Router.reload ### 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 browser’s refresh button. It executes `window.location.reload()`.
```jsx ```jsx
import Router from 'next/router' import Router from 'next/router'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment