Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/docs/02.3-jsx-gotchas.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ A safer alternative is to find the [unicode number corresponding to the entity](
<div>{'First ' + String.fromCharCode(183) + ' Second'}</div>
```

You can use mixed arrays with strings and JSX elements.
You can use mixed arrays with strings and JSX elements. Each JSX element in the array needs a unique key.

```javascript
<div>{['First ', <span>&middot;</span>, ' Second']}</div>
<div>{['First ', <span key="middot">&middot;</span>, ' Second']}</div>
```

As a last resort, you always have the ability to [insert raw HTML](/react/tips/dangerously-set-inner-html.html).
Expand Down