Skip to content

Commit

Permalink
Update Link documentation (#19980)
Browse files Browse the repository at this point in the history
Mention onClick property for next/link wrapping custom components
  • Loading branch information
blvdmitry authored Dec 14, 2020
1 parent ac89474 commit a442841
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docs/api-reference/next/link.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ function NavLink({ href, name }) {
export default NavLink
```

> **Note**: If you’re using [emotion](https://emotion.sh/)’s JSX pragma feature (`@jsx jsx`), you must use `passHref` even if you use an `<a>` tag directly.
- If you’re using [emotion](https://emotion.sh/)’s JSX pragma feature (`@jsx jsx`), you must use `passHref` even if you use an `<a>` tag directly.
- The component should support `onClick` property to trigger navigation correctly

## If the child is a function component

Expand Down

0 comments on commit a442841

Please sign in to comment.