Skip to content

Commit 028b52d

Browse files
committed
Nits
1 parent 698543b commit 028b52d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

content/blog/2017-11-28-react-v16.2.0-fragment-support.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ render() {
1919
}
2020
```
2121

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.
2323

2424
## What Are Fragments?
2525

@@ -133,7 +133,7 @@ Fragment syntax in JSX was inspired by prior art such as the `XMLList() <></>` c
133133

134134
Note that the `<></>` syntax does not accept attributes, including keys.
135135

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:
137137

138138
```jsx
139139
function Glossary(props) {
@@ -159,7 +159,7 @@ You can experiment with JSX fragment syntax with this [CodePen](https://codepen.
159159
160160
## Support for Fragment Syntax
161161
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:
163163
164164
### Create React App
165165
@@ -269,18 +269,18 @@ For other tools, please check with the corresponding documentation to check if t
269269
270270
## Installation
271271
272-
React v16.0.0 is available on the npm registry.
272+
React v16.2.0 is available on the npm registry.
273273
274274
To install React 16 with Yarn, run:
275275
276276
```bash
277-
yarn add react@^16.0.0 react-dom@^16.0.0
277+
yarn add react@^16.2.0 react-dom@^16.2.0
278278
```
279279
280280
To install React 16 with npm, run:
281281
282282
```bash
283-
npm install --save react@^16.0.0 react-dom@^16.0.0
283+
npm install --save react@^16.2.0 react-dom@^16.2.0
284284
```
285285
286286
We also provide UMD builds of React via a CDN:

0 commit comments

Comments
 (0)