Merge pull request #146 from DanielPintilei/patch-1

Add "Short-circuit evaluation" and change "Conditionals"
This commit is contained in:
Rico Sta. Cruz 2017-10-26 14:12:43 +08:00 committed by GitHub
commit ee69076dd9
1 changed files with 11 additions and 3 deletions

View File

@ -379,9 +379,17 @@ Always supply a `key` property.
```jsx ```jsx
<div> <div>
{showPopup {showMyComponent
? <Popup /> ? <MyComponent />
: null} : <OtherComponent />}
</div>
```
### Short-circuit evaluation
```jsx
<div>
{showPopup && <Popup />}
</div> </div>
``` ```