From c7a249514ac180c20b240faf8bcab9cb787fd336 Mon Sep 17 00:00:00 2001 From: ChristopherL Date: Wed, 21 Jan 2026 11:34:00 -0500 Subject: [PATCH] docs: clarify conditional operator usage in JSX --- src/content/learn/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/learn/index.md b/src/content/learn/index.md index 15e3b28663c..958aa846990 100644 --- a/src/content/learn/index.md +++ b/src/content/learn/index.md @@ -197,7 +197,7 @@ return ( ); ``` -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: +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: ```js