Browse Source

Remove tooling support info in fragment docs (#2096)

main
Sibiraj 6 years ago
committed by Alexey Pyltsyn
parent
commit
d71c6e3695
  1. 4
      content/docs/fragments.md

4
content/docs/fragments.md

@ -18,7 +18,7 @@ render() {
}
```
There is also a new [short syntax](#short-syntax) for declaring them, but it isn't supported by all popular tools yet.
There is also a new [short syntax](#short-syntax) for declaring them.
## Motivation {#motivation}
@ -113,8 +113,6 @@ class Columns extends React.Component {
You can use `<></>` the same way you'd use any other element except that it doesn't support keys or attributes.
Note that **[many tools don't support it yet](/blog/2017/11/28/react-v16.2.0-fragment-support.html#support-for-fragment-syntax)** so you might want to explicitly write `<React.Fragment>` until the tooling catches up.
### Keyed Fragments {#keyed-fragments}
Fragments declared with the explicit `<React.Fragment>` syntax may have keys. A use case for this is mapping a collection to an array of fragments -- for example, to create a description list:

Loading…
Cancel
Save