Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
a7fbd308
Unverified
Commit
a7fbd308
authored
Jul 11, 2019
by
Joe Haddad
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust README to mention Link
parent
bbe1e0f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
5 deletions
+19
-5
README.md
packages/next/README.md
+19
-5
No files found.
packages/next/README.md
View file @
a7fbd308
...
@@ -300,6 +300,16 @@ export default Post
...
@@ -300,6 +300,16 @@ export default Post
Any route like
`/post/1`
,
`/post/abc`
, etc will be matched by
`pages/post/[pid].js`
.
Any route like
`/post/1`
,
`/post/abc`
, etc will be matched by
`pages/post/[pid].js`
.
The matched path parameter will be sent as a query parameter to the page.
The matched path parameter will be sent as a query parameter to the page.
> Note: A `<Link>` for a Dynamic Route looks like so:
>
> ```jsx
> <Link href="/post/[pid]" as="/post/abc">
> <a>First Post</a>
> </Link>
> ```
>
> You can [read more about `<Link>` here](#with-link).
For example, the route
`/post/1`
will have the following
`query`
object:
`{ pid: '1' }`
.
For example, the route
`/post/1`
will have the following
`query`
object:
`{ pid: '1' }`
.
Similarly, the route
`/post/abc?foo=bar`
will have the
`query`
object:
`{ foo: 'bar', pid: 'abc' }`
.
Similarly, the route
`/post/abc?foo=bar`
will have the
`query`
object:
`{ foo: 'bar', pid: 'abc' }`
.
...
@@ -316,11 +326,11 @@ For example, `/post/abc?pid=bcd` will have the `query` object: `{ pid: 'abc' }`.
...
@@ -316,11 +326,11 @@ For example, `/post/abc?pid=bcd` will have the `query` object: `{ pid: 'abc' }`.
### Populating `<head>`
### Populating `<head>`
<details>
<details>
<summary><b>
Examples
</b></summary>
<summary><b>
Examples
</b></summary>
<ul>
<ul>
<li><a
href=
"/examples/head-elements"
>
Head elements
</a></li>
<li><a
href=
"/examples/head-elements"
>
Head elements
</a></li>
<li><a
href=
"/examples/layout-component"
>
Layout component
</a></li>
<li><a
href=
"/examples/layout-component"
>
Layout component
</a></li>
</ul>
</ul>
</details>
</details>
We expose a built-in component for appending elements to the
`<head>`
of the page.
We expose a built-in component for appending elements to the
`<head>`
of the page.
...
@@ -2682,3 +2692,7 @@ Please see our [contributing.md](/contributing.md).
...
@@ -2682,3 +2692,7 @@ Please see our [contributing.md](/contributing.md).
- Tony Kovanen ([@tonykovanen](https://twitter.com/tonykovanen)) – [ZEIT](https://zeit.co)
- Tony Kovanen ([@tonykovanen](https://twitter.com/tonykovanen)) – [ZEIT](https://zeit.co)
- Guillermo Rauch ([@rauchg](https://twitter.com/rauchg)) – [ZEIT](https://zeit.co)
- Guillermo Rauch ([@rauchg](https://twitter.com/rauchg)) – [ZEIT](https://zeit.co)
- Dan Zajdband ([@impronunciable](https://twitter.com/impronunciable)) – Knight-Mozilla / Coral Project
- Dan Zajdband ([@impronunciable](https://twitter.com/impronunciable)) – Knight-Mozilla / Coral Project
```
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment