-`url` - The URL to navigate to. This is usually the name of a `page`
-`url` - The URL to navigate to. This is usually the name of a `page`
-`as` - Optional decorator for the URL that will be shown in the browser. Defaults to `url`
-`as` - Optional decorator for the URL that will be shown in the browser. Defaults to `url`
-`options` - Optional object with the following configuration options:
-`options` - Optional object with the following configuration options:
-[`shallow`](/docs/routing/shallow-routing.md): Update the path of the current page without rerunning `getInitialProps`. Defaults to `false`
-[`shallow`](/docs/routing/shallow-routing.md): Update the path of the current page without rerunning `getServerSideProps` or `getInitialProps`. Defaults to `false`
> You don't need to use `Router` for external URLs, [window.location](https://developer.mozilla.org/en-US/docs/Web/API/Window/location) is better suited for those cases.
> You don't need to use `Router` for external URLs, [window.location](https://developer.mozilla.org/en-US/docs/Web/API/Window/location) is better suited for those cases.
@@ -46,7 +46,7 @@ description: Get to know more about Next.js with the frequently asked questions.
...
@@ -46,7 +46,7 @@ description: Get to know more about Next.js with the frequently asked questions.
<details>
<details>
<summary>How do I fetch data?</summary>
<summary>How do I fetch data?</summary>
<p>It's up to you. You can use the <ahref="https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch">fetch API</a>inside your React components, or <ahref="/docs/basic-features/data-fetching.md">Data fetching</a> for initial data population.</p>
<p>It's up to you. You can use the <ahref="https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch">fetch API</a>or <ahref="https://swr.now.sh/">SWR</a> inside your React components for remote data fetching; or use our <ahref="/docs/basic-features/data-fetching.md">data fetching methods</a> for initial data population.</p>