Skip to content

Commit c7a2495

Browse files
docs: clarify conditional operator usage in JSX
1 parent a1ddcf5 commit c7a2495

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/learn/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ return (
197197
);
198198
```
199199
200-
If you prefer more compact code, you can use the [conditional `?` operator.](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Conditional_Operator) Unlike `if`, it works inside JSX:
200+
If you prefer more compact code, you can use the [conditional `?` operator.](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Conditional_Operator) Unlike `if`, it works inline inside JSX:
201201
202202
```js
203203
<div>

0 commit comments

Comments
 (0)