1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Update README.md for with-shallow-routing example (#3285)

This commit is contained in:
Nghiệp 2017-11-15 15:55:41 +07:00 committed by Tim Neutkens
parent fbd4f03254
commit c0581a40cc

View file

@ -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`.