Fix some typos

This commit is contained in:
Jacob Dreesen
2017-11-29 00:02:08 +01:00
committed by GitHub
parent 3a66f62cd8
commit d014fcf097

View File

@@ -33,7 +33,7 @@ More text.
Even more text.
```
Prior to version 16, the only way to acheive this in React was by wrapping the children in an extra element, usually a `div` or `span`:
Prior to version 16, the only way to achieve this in React was by wrapping the children in an extra element, usually a `div` or `span`:
```js
render() {
@@ -142,8 +142,8 @@ function Glossary(props) {
{props.items.map(item => (
// Without the `key`, React will fire a key warning
<Fragment key={item.id}>
<dt>{item.term}</li>
<dd>{item.description}</li>
<dt>{item.term}</dt>
<dd>{item.description}</dd>
</Fragment>
)}
</dl>