Skip to content

Commit 8b6e8b5

Browse files
chalkygames123potato4d
authored andcommitted
Fix typo in conditional-rendering.md (#267)
1 parent bff2faa commit 8b6e8b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/docs/conditional-rendering.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ ReactDOM.render(
150150

151151
これが動作するのは、JavaScript では `true && expression` は必ず `expression` と評価され、`false && expression` は必ず `false` と評価されるからです。
152152

153-
従って、条件部分が `true` であれば、`&&` の後に書かれた要素が出力に現れます。もし `false` でれば、React はそれを無視して飛ばします。
153+
従って、条件部分が `true` であれば、`&&` の後に書かれた要素が出力に現れます。もし `false` であれば、React はそれを無視して飛ばします。
154154

155155
### 条件演算子によるインライン If-Else {#inline-if-else-with-conditional-operator}
156156

@@ -240,4 +240,4 @@ ReactDOM.render(
240240

241241
[**Try it on CodePen**](https://codepen.io/gaearon/pen/Xjoqwm?editors=0010)
242242

243-
コンポーネントの `render` メソッドから `null` を返してもコンポーネントのライフサイクルメソッドの発火には影響しません。例えば `componentDidMount` は変わらず呼び出されます。
243+
コンポーネントの `render` メソッドから `null` を返してもコンポーネントのライフサイクルメソッドの発火には影響しません。例えば `componentDidMount` は変わらず呼び出されます。

0 commit comments

Comments
 (0)