Skip to content
This repository was archived by the owner on Jan 23, 2024. It is now read-only.

Commit 72ea142

Browse files
authored
Update usage.mdx (#1627)
example with reach router is not very relevant as reach router is deprecated now. It's better to give example with react-router
1 parent 0bc42c4 commit 72ea142

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

content/docs/components/link/usage.mdx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,12 @@ you need to do is pass the `as` prop. It'll replace the rendered `a` tag with
4545
Reach's `Link`.
4646

4747
```jsx live=false
48-
import { Link as ReachLink } from "@reach/router"
48+
import { Link as ReactRouterLink } from 'react-router-dom'
49+
import { Link as ChakraLink, LinkProps } from '@chakra-ui/react'
4950

50-
<Link as={ReachLink} to='/home'>
51+
<ChakraLink as={ReactRouterLink} to='/home'>
5152
Home
52-
</Link>
53+
</ChakraLink>
5354
```
5455

5556
## Usage with Next.js

0 commit comments

Comments
 (0)