Skip to content

Commit

Permalink
Update Link example (#7915)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnathanludwig authored Jul 22, 2021
1 parent de785e7 commit 1407a67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-router-dom/docs/api/Link.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ let anchorRef = React.createRef()
If you would like utilize your own navigation component, you can simply do so by passing it through the `component` prop.

```jsx
const FancyLink = React.forwardRef((props, ref) => (
const FancyLink = React.forwardRef(({ navigate, ...props }, ref) => (
<a ref={ref} {...props}>💅 {props.children}</a>
))

Expand Down

0 comments on commit 1407a67

Please sign in to comment.