mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 20:23:08 +00:00
Correct grammar in conditional-rendering.md (#3095)
* Correct grammar in conditional-rendering.md * Correct grammar in content/docs/conditional-rendering.md
This commit is contained in:
@@ -122,7 +122,7 @@ While declaring a variable and using an `if` statement is a fine way to conditio
|
||||
|
||||
### Inline If with Logical && Operator {#inline-if-with-logical--operator}
|
||||
|
||||
You may [embed any expressions in JSX](/docs/introducing-jsx.html#embedding-expressions-in-jsx) by wrapping them in curly braces. This includes the JavaScript logical `&&` operator. It can be handy for conditionally including an element:
|
||||
You may [embed expressions in JSX](/docs/introducing-jsx.html#embedding-expressions-in-jsx) by wrapping them in curly braces. This includes the JavaScript logical `&&` operator. It can be handy for conditionally including an element:
|
||||
|
||||
```js{6-10}
|
||||
function Mailbox(props) {
|
||||
|
||||
Reference in New Issue
Block a user