From 1dd121bd4224666aa1b6804a67e950544b0d9099 Mon Sep 17 00:00:00 2001 From: Daniel Pintilei Date: Wed, 25 Oct 2017 16:41:21 +0300 Subject: [PATCH] Add "Short-circuit evaluation" and change "Conditionals" --- react.md | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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 && }
```