Skip to content

Commit

Permalink
Merge branch 'master' into sync-081bb312
Browse files Browse the repository at this point in the history
  • Loading branch information
smikitky authored Nov 2, 2019
2 parents 2b1ce09 + bb347e4 commit 1b5c85d
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 61 deletions.
4 changes: 2 additions & 2 deletions content/docs/conditional-rendering.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ ReactDOM.render(

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

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

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

Expand Down Expand Up @@ -240,4 +240,4 @@ ReactDOM.render(

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

コンポーネントの `render` メソッドから `null` を返してもコンポーネントのライフサイクルメソッドの発火には影響しません。例えば `componentDidMount` は変わらず呼び出されます。
コンポーネントの `render` メソッドから `null` を返してもコンポーネントのライフサイクルメソッドの発火には影響しません。例えば `componentDidMount` は変わらず呼び出されます。
4 changes: 2 additions & 2 deletions content/docs/hooks-faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ React の観点から見れば、フックを使ったコンポーネントは

> 補足
>
> [Testing Recipes](/docs/testing-recipes.html) にコピー・ペーストで使えるたくさんの例が掲載されています。
> [テストのレシピ集](/docs/testing-recipes.html) にコピー・ペーストで使えるたくさんの例が掲載されています。
例えばこのようなカウンタコンポーネントがあるとしましょう:

Expand Down Expand Up @@ -191,7 +191,7 @@ it('can render and update a counter', () => {

ボイラープレートを減らすため、エンドユーザが使うのと同じ形でコンポーネントを使ってテストが記述できるように設計されている、[React Testing Library](https://testing-library.com/react) の利用をお勧めします。

詳細については、[Testing Recipes](/docs/testing-recipes.html) をご覧ください。
詳細については、[テストのレシピ集](/docs/testing-recipes.html) をご覧ください。

### [Lint ルール](https://www.npmjs.com/package/eslint-plugin-react-hooks) は具体的に何を強制するのですか? {#what-exactly-do-the-lint-rules-enforce}

Expand Down
6 changes: 3 additions & 3 deletions content/docs/nav.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@
title: フックに関するよくある質問
- title: Testing
items:
- id: testing
title: Testing Overview
- id: testing
title: テスト概要
- id: testing-recipes
title: Testing Recipes
title: テストのレシピ集
- id: testing-environments
title: Testing Environments
- title: Concurrent Mode (Experimental)
Expand Down
Loading

0 comments on commit 1b5c85d

Please sign in to comment.