Skip to content
This repository has been archived by the owner on Dec 15, 2018. It is now read-only.

single parent for nested <Fragment>s #292

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,8 @@ To show a `Fragment` when no other `Fragment`s match a route, use `<Fragment for
</Fragment>
```

When nesting `<Fragment>` tags, it's important to note that all of the nested `<Fragment>`s need to share a single parent, as shown in the example above. Failing to do this will result in a React error that will crash your app.

### `<Link>`

Using the `<Link>` component is simple:
Expand Down