Skip to content

Commit

Permalink
Added React.Fragment into BrowserRouter.md, MemoryRouter.md and Stati…
Browse files Browse the repository at this point in the history
…cRouter.md. (#7836)
  • Loading branch information
viktor-ulyankin committed Apr 29, 2021
1 parent 42933fe commit fc91700
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/react-router-dom/docs/api/BrowserRouter.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@ The length of `location.key`. Defaults to 6.

The child elements to render.

Note: On React &lt; 16 you must use a [single child element](https://facebook.github.io/react/docs/react-api.html#reactchildrenonly) since a render method cannot return more than one element. If you need more than one element, you might try wrapping them in an extra `<div>`.
Note: On React &lt; 16 you must use a [single child element](https://facebook.github.io/react/docs/react-api.html#reactchildrenonly) since a render method cannot return more than one element. If you need more than one element, you might try wrapping them in an extra `<div>` or `<React.Fragment>`.
2 changes: 1 addition & 1 deletion packages/react-router/docs/api/MemoryRouter.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,4 @@ The length of `location.key`. Defaults to 6.

The child elements to render.

Note: On React &lt; 16 you must use a [single child element](https://facebook.github.io/react/docs/react-api.html#reactchildrenonly) since a render method cannot return more than one element. If you need more than one element, you might try wrapping them in an extra `<div>`.
Note: On React &lt; 16 you must use a [single child element](https://facebook.github.io/react/docs/react-api.html#reactchildrenonly) since a render method cannot return more than one element. If you need more than one element, you might try wrapping them in an extra `<div>` or `<React.Fragment>`.
2 changes: 1 addition & 1 deletion packages/react-router/docs/api/StaticRouter.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,4 @@ if (context.status === "404") {

The child elements to render.

Note: On React &lt; 16 you must use a [single child element](https://facebook.github.io/react/docs/react-api.html#reactchildrenonly) since a render method cannot return more than one element. If you need more than one element, you might try wrapping them in an extra `<div>`.
Note: On React &lt; 16 you must use a [single child element](https://facebook.github.io/react/docs/react-api.html#reactchildrenonly) since a render method cannot return more than one element. If you need more than one element, you might try wrapping them in an extra `<div>` or `<React.Fragment>`.

0 comments on commit fc91700

Please sign in to comment.