File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ UI がどのように見えるべきかを記述するために [JSX の使用](
62
62
### サスペンス (Suspense)
63
63
64
64
サスペンスを使用すると、コンポーネントはレンダーの前に何かを「待機」できます。
65
- 現在、サスペンスは 1 つのユースケースのみをサポートしています: [ loading components dynamically with ` React.lazy ` ] ( /docs/code-splitting.html#reactlazy ) 。
65
+ 現在、サスペンスは 1 つのユースケースのみをサポートしています:[ ` React.lazy ` を使ってコンポーネントを動的に読み込む ] ( /docs/code-splitting.html#reactlazy ) 。
66
66
将来的にはデータの取得のような他のユースケースもサポートされるでしょう。
67
67
68
68
- [ ` React.lazy ` ] ( #reactlazy )
@@ -74,7 +74,7 @@ UI がどのように見えるべきかを記述するために [JSX の使用](
74
74
75
75
### ` React.Component `
76
76
77
- React コンポーネントが [ ES6 classes ] ( https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Classes ) を用いて定義されている場合、` React.Component ` はそれらの基底クラスになります。
77
+ React コンポーネントが [ ES6 クラス ] ( https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Classes ) を用いて定義されている場合、` React.Component ` はそれらの基底クラスになります。
78
78
79
79
``` javascript
80
80
class Greeting extends React .Component {
@@ -96,7 +96,7 @@ React コンポーネントの `render()` 関数が同じ props と state を与
96
96
97
97
> 補足
98
98
>
99
- > ` React.PureComponent ` の ` shouldComponentUpdate() ` は オブジェクトの浅い比較のみを行います。これらに複雑なデータ構造が含まれていると、深い部分のみに差分があるために、本当は差分があるにも関わらず差分がないと見なされる場合があります。単純な props とstateを持つ場合にのみ ` PureComponent ` を継承するか、深いデータ構造が変更されたとわかっているときに [ ` forceUpdate() ` ] ( /docs/react-component.html#forceupdate ) を使用してください。あるいは、ネストされたデータ構造の高速な比較を容易にするために [ immutable objects ] ( https://facebook.github.io/immutable-js/ ) の使用を検討してください。
99
+ > ` React.PureComponent ` の ` shouldComponentUpdate() ` は オブジェクトの浅い比較のみを行います。これらに複雑なデータ構造が含まれていると、深い部分のみに差分があるために、本当は差分があるにも関わらず差分がないと見なされる場合があります。単純な props とstateを持つ場合にのみ ` PureComponent ` を継承するか、深いデータ構造が変更されたとわかっているときに [ ` forceUpdate() ` ] ( /docs/react-component.html#forceupdate ) を使用してください。あるいは、ネストされたデータ構造の高速な比較を容易にするために [ イミュータブルなオブジェクト ] ( https://facebook.github.io/immutable-js/ ) の使用を検討してください。
100
100
>
101
101
> さらに、` React.PureComponent ` の ` shouldComponentUpdate() ` はサブツリー全体のコンポーネントの props の更新をスキップします。子コンポーネントの全てが「純粋な」コンポーネントであることを確認してください。
102
102
You can’t perform that action at this time.
0 commit comments