mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-24 20:53:08 +00:00
[Beta] remove unnecessary parentheses and update quote content (#4983)
* [Beta] remove unused parentheses * [Beta] change quote content * [Beta] update quote content
This commit is contained in:
@@ -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:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user