Update README.md for with-shallow-routing example (#3285)
This commit is contained in:
parent
fbd4f03254
commit
c0581a40cc
1 changed files with 3 additions and 3 deletions
|
@ -7,8 +7,8 @@
|
|||
Download the example [or clone the repo](https://github.com/zeit/next.js):
|
||||
|
||||
```bash
|
||||
curl https://codeload.github.com/zeit/next.js/tar.gz/master | tar -xz --strip=2 next.js-master/examples/hello-world
|
||||
cd hello-world
|
||||
curl https://codeload.github.com/zeit/next.js/tar.gz/master | tar -xz --strip=2 next.js-master/examples/with-shallow-routing
|
||||
cd with-shallow-routing
|
||||
```
|
||||
|
||||
Install it and run:
|
||||
|
@ -28,4 +28,4 @@ now
|
|||
|
||||
With shallow routing, we could change the URL without actually running the `getInitialProps` every time you change the URL.
|
||||
|
||||
We do this passing the `shallow: true` option to `Router.push` or `Router.replace`.
|
||||
We do this passing the `shallow: true` option to `Router.push` or `Router.replace`.
|
||||
|
|
Loading…
Reference in a new issue