Skip to content

Commit

Permalink
titleを日本語へ翻訳
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyatakahashi committed May 5, 2020
1 parent 03180af commit 90b1174
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions content/blog/2020-02-26-react-v16.13.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ redirect_from:

本日、React 16.13.0 をリリースします。このリリースには、今後のメジャーリリースに備えて、バグ修正と新しい非推奨の警告が含まれています。

## New Warnings {#new-warnings}
## 新規注意事項 {#new-warnings}

### Warnings for some updates during render {#warnings-for-some-updates-during-render}
### レンダリング中のいくつかの更新に関する注意点{#warnings-for-some-updates-during-render}

React コンポーネントは、レンダリング中に他のコンポーネントに副作用を与えてはいけません。

Expand All @@ -21,7 +21,7 @@ Warning: Cannot update a component from inside the function body of a different

**この警告は、意図しない状態変更によって引き起こされるアプリケーションのバグを見つけるのに役立ちます。**レンダリングの結果として他のコンポーネントの状態を意図的に変更したい場合は、`setState`呼び出しを`useEffect`にラップすることができます。

### Warnings for conflicting style rules {#warnings-for-conflicting-style-rules}
### スタイルルールが矛盾している場合の注意点{#warnings-for-conflicting-style-rules}

CSSプロパティのlonghandとshorthandを含む `style` を動的に適用する場合、特定の更新の組み合わせにより、スタイリングの一貫性が失われることがあります。例えば、以下のようになります。

Expand All @@ -40,7 +40,7 @@ CSSプロパティのlonghandとshorthandを含む `style` を動的に適用す
**Reactは、スタイルルールの競合を検出し、警告をログに記録するようになりました。**
警告が検出されたソースコードを修正するには、同じCSSプロパティのshortandとlonghandのバージョンを`style`プロップに混在させないようにしてください。

### Warnings for some deprecated string refs {#warnings-for-some-deprecated-string-refs}
### いくつかの非推奨文字列 refs に関する注意点{#warnings-for-some-deprecated-string-refs}

[String Refs は古いバージョンのAPI](/docs/refs-and-the-dom.html#legacy-api-string-refs)は開発者に気に入れられておらず、将来的には非推奨になりそうです。

Expand Down Expand Up @@ -109,7 +109,7 @@ class ClassParent extends React.Component {
>
> If you use Create React App or have the "react" preset with Babel 7+, you already have this plugin installed by default.
### Deprecating `React.createFactory` {#deprecating-reactcreatefactory}
### `React.createFactory`は推奨しない{#deprecating-reactcreatefactory}

[`React.createFactory`](/docs/react-api.html#createfactory) はReact要素を作成するための旧版のルパーです。このリリースでは、メソッドに非推奨の警告が追加されています。これは将来のメジャーバージョンで削除される予定です。

Expand All @@ -121,15 +121,15 @@ let createFactory = type => React.createElement.bind(null, type);

全く同じことをしています。

### Deprecating `ReactDOM.unstable_createPortal` in favor of `ReactDOM.createPortal` {#deprecating-reactdomunstable_createportal-in-favor-of-reactdomcreateportal}
### `ReactDOM.unstable_createPortal``ReactDOM.createPortal`に変更することを推奨しない{#deprecating-reactdomunstable_createportal-in-favor-of-reactdomcreateportal}

React 16がリリースされたとき、`createPortal`は公式にサポートされるAPIになりました。

しかし、`unstable_createPortal`を採用している少数のライブラリが動作するように、`unstable_createPortal`をサポートされたエイリアスとして残していました。現在、この不安定なエイリアスは非推奨となっています。`unstable_createPortal` の代わりに `createPortal` を直接使ってください。これは全く同じシグネチャを持っています。

## Other Improvements {#other-improvements}
## その他の改良事項 {#other-improvements}

### Component stacks in hydration warnings {#component-stacks-in-hydration-warnings}
### hydrationの警告におけるコンポーネントスタック{#component-stacks-in-hydration-warnings}

React は開発警告にコンポーネントスタックを追加し、開発者がバグを分離してプログラムをデバッグできるようにします。今回のリリースでは、以前はなかった多くの開発警告にコンポーネントスタックが追加されました。例として、以前のバージョンにあったこのハイドレーション警告を考えてみましょう。

Expand All @@ -141,7 +141,7 @@ React は開発警告にコンポーネントスタックを追加し、開発

これにより、問題がどこにあるのかが明確になり、より早くバグの場所を特定して修正することができます。

### Notable bugfixes {#notable-bugfixes}
### 注目すべきバグ修正 {#notable-bugfixes}

このリリースには、他にもいくつかの注目すべき改善点が含まれています。

Expand All @@ -156,7 +156,7 @@ React は開発警告にコンポーネントスタックを追加し、開発
これらの問題やその他の問題を解決してくれた貢献者に感謝します。完全なchangelog [下記](#changelog)を参照してください。


## Installation {#installation}
## インストール {#installation}

### React {#react}

Expand All @@ -183,7 +183,7 @@ npm install --save react@^16.13.0 react-dom@^16.13.0

[詳細のスクリプト設置方法](/docs/installation.html)については、説明書を参照してください。

## Changelog {#changelog}
## 変更履歴 {#changelog}

### React {#react}

Expand Down

0 comments on commit 90b1174

Please sign in to comment.