Update react.md

This commit is contained in:
Rico Sta. Cruz 2018-03-26 11:47:31 +08:00 committed by GitHub
parent c9dc91a3b3
commit d8c2eab787
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -426,7 +426,8 @@ New features
You can return multiple elements as arrays or fragments.
**Arrays**
#### Arrays
```js
render () {
// Don't forget the keys!
@ -438,7 +439,7 @@ render () {
```
{: data-line="3,4,5,6"}
**Fragments**
#### Fragments
```js
render () {
// Fragments don't require keys!