Skip to content

Commit f184bd8

Browse files
mihbortimdorr
authored andcommitted
wrap text in a Link with a Text element (remix-run#6214)
otherwise it throws Invariant Violation: React.Children.only expected to receive a single React element child.
1 parent ae35a27 commit f184bd8

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Provide declarative, accessible navigation around your application.
55
```jsx
66
import { Link } from 'react-router-native'
77

8-
<Link to='/about'>About</Link>
8+
<Link to='/about'><Text>About</Text></Link>
99
```
1010

1111
## to: string

0 commit comments

Comments
 (0)