Commit c0581a40 authored by Nghiệp's avatar Nghiệp Committed by Tim Neutkens

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

parent fbd4f032
......@@ -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`.
\ No newline at end of file
We do this passing the `shallow: true` option to `Router.push` or `Router.replace`.
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