mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 04:12:34 +00:00
Remove tooling support info in fragment docs (#2096)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user