From c2bacb7742041ee3ba526e6124d752177cf7a13d Mon Sep 17 00:00:00 2001 From: WATAHIKI YUTO Date: Sat, 17 Jan 2026 20:43:26 +0900 Subject: [PATCH] =?UTF-8?q?=E3=80=8CReact=E3=80=8D=E3=81=AE=E7=AF=80?= =?UTF-8?q?=E3=81=AE=E6=9D=A1=E4=BB=B6=E5=88=86=E5=B2=90=E3=81=AE=E8=AA=AC?= =?UTF-8?q?=E6=98=8E=E3=81=AE=E3=82=BF=E3=82=A4=E3=83=9D=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/4-advanced/04-react/index.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/4-advanced/04-react/index.mdx b/docs/4-advanced/04-react/index.mdx index 22775c41..10cc3e8a 100644 --- a/docs/4-advanced/04-react/index.mdx +++ b/docs/4-advanced/04-react/index.mdx @@ -320,7 +320,7 @@ JSXでは、HTMLにおいて閉じタグが必須でない要素 (この例で ::: -このプログラムは、`age`変数が`18`以上である場合のみメッセージを表示します。これは、`&&`演算子の挙動を利用した手法です。これまで、`&&`演算子は両辺が`true`であれば`true`を返す演算子であるとしてきました。しかしながら、[`&&`演算子のより一般的な定義](https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Operators/Logical_AND)は、**左辺が[truthy](https://developer.mozilla.org/ja/docs/Glossary/Truthy)であれば右辺の値を、そうでなければ左辺の値を返す演算子**です。 +このプログラムは、`age`変数が`18`未満である場合のみメッセージを表示します。これは、`&&`演算子の挙動を利用した手法です。これまで、`&&`演算子は両辺が`true`であれば`true`を返す演算子であるとしてきました。しかしながら、[`&&`演算子のより一般的な定義](https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Operators/Logical_AND)は、**左辺が[truthy](https://developer.mozilla.org/ja/docs/Glossary/Truthy)であれば右辺の値を、そうでなければ左辺の値を返す演算子**です。 ```typescript const a = 3 && 4; // 3はtruthyなのでaは4