Skip to content

Commit 3b7577c

Browse files
authored
Merge pull request #637 from lachlanjc/patch-5
Clarify Gatsby link imports in docs
2 parents c37fe62 + 5b7c449 commit 3b7577c

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/docs/src/recipes/gatsby-link.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ name: 'Gatsby Link'
44

55
# Gatsby Link
66

7-
Add an active style to Gatsby Link or other React router link components.
7+
Add an active style to [Gatsby Link] or other React router link components.
8+
Import the Theme UI [custom JSX pragma](/guides/jsx-pragma) for styling
9+
the router link components directly, without using wrapper components.
810

911
```jsx live
1012
<Link
@@ -20,6 +22,8 @@ Add an active style to Gatsby Link or other React router link components.
2022
</Link>
2123
```
2224

25+
Full code for this example:
26+
2327
```jsx
2428
/** @jsx jsx */
2529
import { jsx } from 'theme-ui'
@@ -37,3 +41,5 @@ export default props =>
3741
}}
3842
/>
3943
```
44+
45+
[Gatsby Link]: https://www.gatsbyjs.org/docs/linking-between-pages/

0 commit comments

Comments
 (0)