Unverified Commit a4428415 authored by Dmitry Belyaev's avatar Dmitry Belyaev Committed by GitHub

Update Link documentation (#19980)

Mention onClick property for next/link wrapping custom components
parent ac894743
......@@ -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
......
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