diff --git a/react.md b/react.md index dbd27a345..994918b15 100644 --- a/react.md +++ b/react.md @@ -379,9 +379,17 @@ Always supply a `key` property. ```jsx
- {showPopup - ? - : null} + {showMyComponent + ? + : } +
+``` + +### Short-circuit evaluation + +```jsx +
+ {showPopup && }
```