@@ -7,9 +7,9 @@ redirect_from:
7
7
8
8
本日、React 16.13.0 をリリースします。このリリースには、今後のメジャーリリースに備えて、バグ修正と新しい非推奨の警告が含まれています。
9
9
10
- ## New Warnings {#new-warnings}
10
+ ## 新規注意事項 {#new-warnings}
11
11
12
- ### Warnings for some updates during render {#warnings-for-some-updates-during-render}
12
+ ### レンダリング中のいくつかの更新に関する注意点 {#warnings-for-some-updates-during-render}
13
13
14
14
React コンポーネントは、レンダリング中に他のコンポーネントに副作用を与えてはいけません。
15
15
@@ -21,7 +21,7 @@ Warning: Cannot update a component from inside the function body of a different
21
21
22
22
** この警告は、意図しない状態変更によって引き起こされるアプリケーションのバグを見つけるのに役立ちます。** レンダリングの結果として他のコンポーネントの状態を意図的に変更したい場合は、` setState ` 呼び出しを` useEffect ` にラップすることができます。
23
23
24
- ### Warnings for conflicting style rules {#warnings-for-conflicting-style-rules}
24
+ ### スタイルルールが矛盾している場合の注意点 {#warnings-for-conflicting-style-rules}
25
25
26
26
CSSプロパティのlonghandとshorthandを含む ` style ` を動的に適用する場合、特定の更新の組み合わせにより、スタイリングの一貫性が失われることがあります。例えば、以下のようになります。
27
27
@@ -40,7 +40,7 @@ CSSプロパティのlonghandとshorthandを含む `style` を動的に適用す
40
40
** Reactは、スタイルルールの競合を検出し、警告をログに記録するようになりました。**
41
41
警告が検出されたソースコードを修正するには、同じCSSプロパティのshortandとlonghandのバージョンを` style ` プロップに混在させないようにしてください。
42
42
43
- ### Warnings for some deprecated string refs {#warnings-for-some-deprecated-string-refs}
43
+ ### いくつかの非推奨文字列 refs に関する注意点 {#warnings-for-some-deprecated-string-refs}
44
44
45
45
[ String Refs は古いバージョンのAPI] ( /docs/refs-and-the-dom.html#legacy-api-string-refs ) は開発者に気に入れられておらず、将来的には非推奨になりそうです。
46
46
@@ -109,7 +109,7 @@ class ClassParent extends React.Component {
109
109
>
110
110
> If you use Create React App or have the "react" preset with Babel 7+, you already have this plugin installed by default.
111
111
112
- ### Deprecating ` React.createFactory ` {#deprecating-reactcreatefactory}
112
+ ### ` React.createFactory ` は推奨しない {#deprecating-reactcreatefactory}
113
113
114
114
[ ` React.createFactory ` ] ( /docs/react-api.html#createfactory ) はReact要素を作成するための旧版のルパーです。このリリースでは、メソッドに非推奨の警告が追加されています。これは将来のメジャーバージョンで削除される予定です。
115
115
@@ -121,15 +121,15 @@ let createFactory = type => React.createElement.bind(null, type);
121
121
122
122
全く同じことをしています。
123
123
124
- ### Deprecating ` ReactDOM.unstable_createPortal ` in favor of ` ReactDOM.createPortal ` {#deprecating-reactdomunstable_createportal-in-favor-of-reactdomcreateportal}
124
+ ### ` ReactDOM.unstable_createPortal ` を ` ReactDOM.createPortal ` に変更することを推奨しない {#deprecating-reactdomunstable_createportal-in-favor-of-reactdomcreateportal}
125
125
126
126
React 16がリリースされたとき、` createPortal ` は公式にサポートされるAPIになりました。
127
127
128
128
しかし、` unstable_createPortal ` を採用している少数のライブラリが動作するように、` unstable_createPortal ` をサポートされたエイリアスとして残していました。現在、この不安定なエイリアスは非推奨となっています。` unstable_createPortal ` の代わりに ` createPortal ` を直接使ってください。これは全く同じシグネチャを持っています。
129
129
130
- ## Other Improvements {#other-improvements}
130
+ ## その他の改良事項 {#other-improvements}
131
131
132
- ### Component stacks in hydration warnings {#component-stacks-in-hydration-warnings}
132
+ ### hydrationの警告におけるコンポーネントスタック {#component-stacks-in-hydration-warnings}
133
133
134
134
React は開発警告にコンポーネントスタックを追加し、開発者がバグを分離してプログラムをデバッグできるようにします。今回のリリースでは、以前はなかった多くの開発警告にコンポーネントスタックが追加されました。例として、以前のバージョンにあったこのハイドレーション警告を考えてみましょう。
135
135
@@ -141,7 +141,7 @@ React は開発警告にコンポーネントスタックを追加し、開発
141
141
142
142
これにより、問題がどこにあるのかが明確になり、より早くバグの場所を特定して修正することができます。
143
143
144
- ### Notable bugfixes {#notable-bugfixes}
144
+ ### 注目すべきバグ修正 {#notable-bugfixes}
145
145
146
146
このリリースには、他にもいくつかの注目すべき改善点が含まれています。
147
147
@@ -156,7 +156,7 @@ React は開発警告にコンポーネントスタックを追加し、開発
156
156
これらの問題やその他の問題を解決してくれた貢献者に感謝します。完全なchangelog [ 下記] ( #changelog ) を参照してください。
157
157
158
158
159
- ## Installation {#installation}
159
+ ## インストール {#installation}
160
160
161
161
### React {#react}
162
162
@@ -183,7 +183,7 @@ npm install --save react@^16.13.0 react-dom@^16.13.0
183
183
184
184
[ 詳細のスクリプト設置方法] ( /docs/installation.html ) については、説明書を参照してください。
185
185
186
- ## Changelog {#changelog}
186
+ ## 変更履歴 {#changelog}
187
187
188
188
### React {#react}
189
189
0 commit comments