You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: content/blog/2017-11-28-react-v16.2.0-fragment-support.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ render() {
19
19
}
20
20
```
21
21
22
-
This exciting new feature is made possible by new additions to both React and JSX.
22
+
This exciting new feature is made possible by additions to both React and JSX.
23
23
24
24
## What Are Fragments?
25
25
@@ -133,7 +133,7 @@ Fragment syntax in JSX was inspired by prior art such as the `XMLList() <></>` c
133
133
134
134
Note that the `<></>` syntax does not accept attributes, including keys.
135
135
136
-
If you need a keyed fragment, you can use `<React.Fragment />` directly. An use case for this is mapping a collection to an array of fragments -- for example, to create a description list:
136
+
If you need a keyed fragment, you can use `<Fragment />` directly. An use case for this is mapping a collection to an array of fragments -- for example, to create a description list:
137
137
138
138
```jsx
139
139
functionGlossary(props) {
@@ -159,7 +159,7 @@ You can experiment with JSX fragment syntax with this [CodePen](https://codepen.
159
159
160
160
## Support for Fragment Syntax
161
161
162
-
These additions Support for fragment syntax in JSX will vary depending on the tools you use to build your app. Please be patient as the JSX community works to adopt the new syntax. We've been working closely with maintainers of the most popular projects:
162
+
Support for fragment syntax in JSX will vary depending on the tools you use to build your app. Please be patient as the JSX community works to adopt the new syntax. We've been working closely with maintainers of the most popular projects:
163
163
164
164
### Create React App
165
165
@@ -269,18 +269,18 @@ For other tools, please check with the corresponding documentation to check if t
0 commit comments