Browse Source
[Beta] remove unnecessary parentheses and update quote content (#4983)
* [Beta] remove unused parentheses
* [Beta] change quote content
* [Beta] update quote content
main
zqran
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
beta/src/pages/learn/conditional-rendering.md
|
|
@ -202,7 +202,7 @@ return ( |
|
|
|
); |
|
|
|
``` |
|
|
|
|
|
|
|
You can read it as *"if `isPacked` is true, then (`?`) render `name + ' ✔'`, otherwise (`:`) render `name`."*) |
|
|
|
You can read it as *"if `isPacked` is true, then (`?`) render `name + ' ✔'`, otherwise (`:`) render `name`"*. |
|
|
|
|
|
|
|
<DeepDive title="Are these two examples fully equivalent?"> |
|
|
|
|
|
|
@ -268,7 +268,7 @@ return ( |
|
|
|
); |
|
|
|
``` |
|
|
|
|
|
|
|
You can read this as *“if `isPacked`, then (`&&`) render the checkmark, otherwise, render nothing.”* |
|
|
|
You can read this as *"if `isPacked`, then (`&&`) render the checkmark, otherwise, render nothing"*. |
|
|
|
|
|
|
|
Here it is in action: |
|
|
|
|
|
|
|