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

Hyperlink spelling (#2616)

This commit is contained in:
Ben Murden 2017-07-21 20:19:22 +09:00 committed by Tim Neutkens
parent f2f5b96ecb
commit 6781a75d8b

View file

@ -359,7 +359,7 @@ export default () => (
##### Forcing the Link to expose `href` to its child
If child is an `<a>` tag and doesn't have a href attribute we specify it so that the repetition is not needed by the user. However, sometimes, youll want to pass an `<a>` tag inside of a wrapper and the `Link` wont recognize it as a *hiperlink*, and, consequently, wont transfer its `href` to the child. In cases like that, you should define a boolean `passHref` property to the `Link`, forcing it to expose its `href` property to the child.
If child is an `<a>` tag and doesn't have a href attribute we specify it so that the repetition is not needed by the user. However, sometimes, youll want to pass an `<a>` tag inside of a wrapper and the `Link` wont recognize it as a *hyperlink*, and, consequently, wont transfer its `href` to the child. In cases like that, you should define a boolean `passHref` property to the `Link`, forcing it to expose its `href` property to the child.
```jsx
import Link from 'next/link'