mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-26 18:58:17 +00:00
Fix some typos
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user