[react] [docs] improve wording of fragments example

This commit is contained in:
raunofreiberg 2018-03-19 11:16:55 +02:00
parent ed9ff3ca12
commit c9dc91a3b3
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ class Info extends React.Component {
} }
} }
``` ```
As of React v16.2.0 components can return multiple grouped elements without adding extra nodes to the DOM. In this example, you would get the nested components' nodes without a wrapping element. As of React v16.2.0, fragments can be used to return multiple children without adding extra wrapping nodes to the DOM.
```jsx ```jsx
class Info extends React.Component { class Info extends React.Component {