Skip to content

Commit 1407a67

Browse files
Update Link example (#7915)
1 parent de785e7 commit 1407a67

File tree

1 file changed

+1
-1
lines changed
  • packages/react-router-dom/docs/api

1 file changed

+1
-1
lines changed

packages/react-router-dom/docs/api/Link.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ let anchorRef = React.createRef()
8787
If you would like utilize your own navigation component, you can simply do so by passing it through the `component` prop.
8888

8989
```jsx
90-
const FancyLink = React.forwardRef((props, ref) => (
90+
const FancyLink = React.forwardRef(({ navigate, ...props }, ref) => (
9191
<a ref={ref} {...props}>💅 {props.children}</a>
9292
))
9393

0 commit comments

Comments
 (0)