Skip to content

Commit 15c3811

Browse files
authored
Merge branch 'master' into implementation_notes
2 parents 47f8884 + 853c4db commit 15c3811

15 files changed

+69
-44
lines changed

TRANSLATION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
- [Is React Translated Yet? ¡Sí! Sim! はい!](https://reactjs.org/blog/2019/02/23/is-react-translated-yet.html)
66

7-
オリジナル reactjs.org は Gatzby にって生成される静的サイトであり、英語ドキュメントおよびブログ記事が含まれています。本リポジトリはそのフォークです。`content` 内にあるドキュメントが日本語化されているほか(一部除く)、一部のレイアウト要素に対する JavaScript レベルでのいくつかのパッチ、日本語版でのみ使う textlint などが含まれています。現時点では大部分のドキュメントの翻訳が完了しているため、最新版ドキュメントへの追随を主に行っています。日本語訳や日本語版特有の問題を見つけた場合はこのリポジトリの Issue / Pull Request を使って報告ないし改善を提案してください。
7+
オリジナル reactjs.org は Gatsby にって生成される静的サイトであり、英語ドキュメントおよびブログ記事が含まれています。本リポジトリはそのフォークです。`content` 内にあるドキュメントが日本語化されているほか(一部除く)、一部のレイアウト要素に対する JavaScript レベルでのいくつかのパッチ、日本語版でのみ使う textlint などが含まれています。現時点では大部分のドキュメントの翻訳が完了しているため、最新版ドキュメントへの追随を主に行っています。日本語訳や日本語版特有の問題を見つけた場合はこのリポジトリの Issue / Pull Request を使って報告ないし改善を提案してください。
88

99
メンテナ(3 名)
1010

content/blog/2019-02-23-is-react-translated-yet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ In the past, React community members have created unofficial translations for [C
2323

2424
If you would like to help out on a current translation, check out the [Languages](/languages) page and click on the "Contribute" link for your language.
2525

26-
Can't find your language? If you'd like to maintain your langauge's translation fork, follow the instructions in the [translation repo](https://github.com/reactjs/reactjs.org-translation#starting-a-new-translation)!
26+
Can't find your language? If you'd like to maintain your language's translation fork, follow the instructions in the [translation repo](https://github.com/reactjs/reactjs.org-translation#starting-a-new-translation)!
2727

2828
## Backstory {#backstory}
2929

content/community/conferences.md

Lines changed: 46 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -12,36 +12,6 @@ Do you know of a local React.js conference? Add it here! (Please keep the list c
1212

1313
## Upcoming Conferences {#upcoming-conferences}
1414

15-
### ReactEurope 2019 {#reacteurope-2019}
16-
May 23-24, 2019 in Paris, France
17-
18-
[Website](https://www.react-europe.org) - [Twitter](https://twitter.com/ReactEurope) - [Facebook](https://www.facebook.com/ReactEurope) - [Videos](https://www.youtube.com/c/ReacteuropeOrgConf)
19-
20-
### React Conf Armenia 2019 {#react-conf-am-19}
21-
May 25, 2019 in Yerevan, Armenia
22-
23-
[Website](https://reactconf.am/) - [Twitter](https://twitter.com/ReactConfAM) - [Facebook](https://www.facebook.com/reactconf.am/) - [YouTube](https://www.youtube.com/c/JavaScriptConferenceArmenia) - [CFP](http://bit.ly/speakReact)
24-
25-
### ReactNext 2019 {#react-next-2019}
26-
June 11, 2019. Tel Aviv, Israel
27-
28-
[Website](https://react-next.com) - [Twitter](https://twitter.com/ReactNext) - [Videos](https://www.youtube.com/channel/UC3BT8hh3yTTYxbLQy_wbk2w)
29-
30-
### React Norway 2019 {#react-norway-2019}
31-
June 12, 2019. Larvik, Norway
32-
33-
[Website](https://reactnorway.com) - [Twitter](https://twitter.com/ReactNorway)
34-
35-
### React Loop 2019 {#react-loop-2019}
36-
June 21, 2019 Chicago, Illinois USA
37-
38-
[Website](https://reactloop.com) - [Twitter](https://twitter.com/ReactLoop)
39-
40-
### Chain React 2019 {#chain-react-2019}
41-
July 11-12, 2019. Portland, OR, USA.
42-
43-
[Website](https://infinite.red/ChainReactConf)
44-
4515
### React Rally 2019 {#react-rally-2019}
4616
August 22-23, 2019. Salt Lake City, USA.
4717

@@ -82,6 +52,11 @@ September 26-28, 2019 in Alicante, Spain
8252

8353
[Website](http://reactalicante.es/) - [Twitter](https://twitter.com/reactalicante) - [Facebook](https://www.facebook.com/ReactAlicante)
8454

55+
### React Conf 2019 {#react-conf-2019}
56+
October 24-25, 2019 in Henderson, Nevada USA
57+
58+
[Website](https://conf.reactjs.org/) - [Twitter](https://twitter.com/reactjs)
59+
8560
### React Advanced 2019 {#react-advanced-2019}
8661
October 25, 2019 in London, UK
8762

@@ -92,6 +67,16 @@ December 6, 2019 in Berlin, Germany
9267

9368
[Website](https://reactday.berlin) - [Twitter](https://twitter.com/reactdayberlin) - [Facebook](https://www.facebook.com/reactdayberlin/) - [Videos](https://www.youtube.com/reactdayberlin)
9469

70+
### ReactConf AU 2020 {#reactconfau}
71+
February 27 & 28, 2020 in Sydney, Australia
72+
73+
[Website](https://reactconfau.com/) - [Twitter](https://twitter.com/reactconfau) - [Facebook](https://www.facebook.com/reactconfau) - [Instagram](https://www.instagram.com/reactconfau/)
74+
75+
### Render-Atlanta 2020 {#render-atlanta-2020}
76+
May 4-6, 2020. Atlanta, GA, USA.
77+
78+
[Website](https://renderatl.com)
79+
9580
## Past Conferences {#past-conferences}
9681

9782
### React.js Conf 2015 {#reactjs-conf-2015}
@@ -395,3 +380,34 @@ May 3, 2019 in London, UK
395380
May 11 in Sofia, Bulgaria
396381

397382
[Website](http://react-not-a-conf.com/) - [Twitter](https://twitter.com/reactnotaconf) - [Facebook](https://www.facebook.com/events/780891358936156)
383+
384+
### ReactEurope 2019 {#reacteurope-2019}
385+
May 23-24, 2019 in Paris, France
386+
387+
[Website](https://www.react-europe.org) - [Twitter](https://twitter.com/ReactEurope) - [Facebook](https://www.facebook.com/ReactEurope) - [Videos](https://www.youtube.com/c/ReacteuropeOrgConf)
388+
389+
### React Conf Armenia 2019 {#react-conf-am-19}
390+
May 25, 2019 in Yerevan, Armenia
391+
392+
[Website](https://reactconf.am/) - [Twitter](https://twitter.com/ReactConfAM) - [Facebook](https://www.facebook.com/reactconf.am/) - [YouTube](https://www.youtube.com/c/JavaScriptConferenceArmenia) - [CFP](http://bit.ly/speakReact)
393+
394+
### ReactNext 2019 {#react-next-2019}
395+
June 11, 2019. Tel Aviv, Israel
396+
397+
[Website](https://react-next.com) - [Twitter](https://twitter.com/ReactNext) - [Videos](https://www.youtube.com/channel/UC3BT8hh3yTTYxbLQy_wbk2w)
398+
399+
### React Norway 2019 {#react-norway-2019}
400+
June 12, 2019. Larvik, Norway
401+
402+
[Website](https://reactnorway.com) - [Twitter](https://twitter.com/ReactNorway)
403+
404+
### React Loop 2019 {#react-loop-2019}
405+
June 21, 2019 Chicago, Illinois USA
406+
407+
[Website](https://reactloop.com) - [Twitter](https://twitter.com/ReactLoop)
408+
409+
### Chain React 2019 {#chain-react-2019}
410+
July 11-12, 2019. Portland, OR, USA.
411+
412+
[Website](https://infinite.red/ChainReactConf)
413+

content/community/meetups.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ Do you have a local React.js meetup? Add it here! (Please keep the list alphabet
5555
* [Düsseldorf](https://www.meetup.com/de-DE/ReactJS-Meetup-Dusseldorf/)
5656
* [Hamburg](https://www.meetup.com/Hamburg-React-js-Meetup/)
5757
* [Karlsruhe](https://www.meetup.com/react_ka/)
58+
* [Kiel](https://www.meetup.com/Kiel-React-Native-Meetup/)
5859
* [Munich](https://www.meetup.com/ReactJS-Meetup-Munich/)
5960
* [React Berlin](https://www.meetup.com/React-Berlin/)
6061
* [React.JS Girls Berlin](https://www.meetup.com/ReactJS-Girls-Berlin/)

content/community/tools-ui-components.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ permalink: community/ui-components.html
7272
## Fee Based Components {#fee-based-components}
7373

7474
* **[ag-Grid](https://www.ag-grid.com)** Advanced data grid / data table for React.
75+
* **[DevExtreme Reactive](https://devexpress.github.io/devextreme-reactive/react/)** High-performance plugin-based Data Grid, Scheduler and Chart components for Bootstrap and Material Design.
7576
* **[ExtReact components](https://www.sencha.com/products/extreact//)**: 115+ Ready-to-Use UI Components.
7677
* **[Grapecity Wijmo UI Components for React](https://www.grapecity.com/en/react/)**: Expand your React UI options with Wijmo’s complete collection of JavaScript components.
7778
* **[jQWidgets React components](https://www.jqwidgets.com/react/)**: Enterprise Ready 70+ UI Components.

content/docs/accessibility.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ Deque System はアプリケーションの自動化された E2E アクセシ
463463
一部のブラウザではアクセシビリティツリー内の各要素のアクセシビリティに関する情報を簡単に見ることができます:
464464

465465
- [Using the Accessibility Inspector in Firefox](https://developer.mozilla.org/en-US/docs/Tools/Accessibility_inspector)
466-
- [Activate the Accessibility Inspector in Chrome](https://gist.github.com/marcysutton/0a42f815878c159517a55e6652e3b23a)
466+
- [Using the Accessibility Inspector in Chrome](https://developers.google.com/web/tools/chrome-devtools/accessibility/reference#pane)
467467
- [Using the Accessibility Inspector in OS X Safari](https://developer.apple.com/library/content/documentation/Accessibility/Conceptual/AccessibilityMacOSX/OSXAXTestingApps.html)
468468

469469
### スクリーンリーダ {#screen-readers}

content/docs/hooks-faq.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ React バージョン 16.8.0 より、以下においてフックの安定版の
7070

7171
**フックを利用するには、すべての React のパッケージが 16.8.0 以上である必要があります**。例えば React DOM の更新を忘れた場合、フックは動作しません。
7272

73-
React Native は次の安定版リリースでフックを全面的にサポートします
73+
React Native はバージョン 0.59 以降でフックをサポートします
7474

7575
### クラスコンポーネントを全部書き換える必要があるのですか? {#do-i-need-to-rewrite-all-my-class-components}
7676

@@ -617,7 +617,7 @@ function ProductPage({ productId }) {
617617
const json = await response.json();
618618
if (!ignore) setProduct(json);
619619
}
620-
620+
621621
fetchProduct();
622622
return () => { ignore = true };
623623
}, [productId]);
@@ -674,7 +674,9 @@ function Counter() {
674674
}
675675
```
676676

677-
依存のリストとして `[count]` を指定すればバグは起きなくなりますが、その場合値が変化するたびに interval がリセットされることになります。これは望ましい動作ではありません。これを修正するため、[`setState` 関数形式による更新](/docs/hooks-reference.html#functional-updates)を利用することができます。これにより state の*現在値*を参照せずに state が*どのように*更新されるべきかを指定できます。
677+
依存のリストが空であるということ (`[]`) は、コンポーネントのマウント時に副作用が一度のみ実行され、毎回の再レンダー時には実行されないということを意味します。ここでの問題は、副作用コールバックが実行された時点で `count` の値が `0` に設定されたクロージャを作成したため、`setInterval` 内のコールバックで `count` の値が変わらなくなってしまう、ということです。毎秒ごとにこのコールバックは `setCount(0 + 1)` を呼び出すので、カウントは 1 のまま変わらなくなってしまいます。
678+
679+
依存のリストとして `[count]` を指定すればバグは起きなくなりますが、その場合値が変化するたびにタイマーがリセットされることになります。事実上それぞれの `setInterval` は一度しか実行されずに(`setTimeout` のように)クリアされてしまうのです。これは望ましい動作ではありません。これを修正するため、[`setState` 関数形式による更新](/docs/hooks-reference.html#functional-updates)を利用することができます。これにより state の*現在値*を参照せずに state が*どのように*更新されるべきかを指定できます。
678680

679681
```js{6,9}
680682
function Counter() {
@@ -693,6 +695,8 @@ function Counter() {
693695

694696
`setCount` 関数については同一性が保たれることが保証されているので、省略して構いません)
695697

698+
これで、`setInterval` のコールバックは 1 秒に 1 回実行されますが、内部の `setCount``count` の最新の値(この例では `c`)を参照できるようになります。
699+
696700
より複雑なケース(ある state が別の state に依存している場合など)においては、state 更新のロジックを [`useReducer` フック](/docs/hooks-reference.html#usereducer)を使って副作用の外部に移動することを考慮してください。[こちらの記事](https://adamrackis.dev/state-and-use-reducer/)にこのやり方についての例があります。**`useReducer` から返される `dispatch` 関数は常に同一性が保たれます**。これはリデューサ (reducer) 関数がコンポーネント内で宣言されており props を読み出している場合でも同様です。
697701

698702
最終手段として、クラスにおける `this` のようなものが欲しい場合は、[ref](/docs/hooks-faq.html#is-there-something-like-instance-variables) を使ってミュータブルな値を保持させることができます。そうすればその値を読み書き可能です。例えば:
@@ -834,7 +838,7 @@ function Image(props) {
834838

835839
* フックをうまく用いたコードは、高階コンポーネントやレンダープロップやコンテクストを多用するコードベースで見られるような**深いコンポーネントのネストを必要としません**。コンポーネントツリーが小さければ、React がやるべき仕事も減ります。
836840

837-
過去には、インライン関数によるパフォーマンスの懸念というのは、レンダー毎に新しいコールバック関数を作って渡すと子コンポーネントでの `souldComponentUpdate` による最適化が動かなくなる、という問題と関連していました。フックではこの問題について 3 つの側面から対応します。
841+
過去には、インライン関数によるパフォーマンスの懸念というのは、レンダー毎に新しいコールバック関数を作って渡すと子コンポーネントでの `shouldComponentUpdate` による最適化が動かなくなる、という問題と関連していました。フックではこの問題について 3 つの側面から対応します。
838842

839843
* [`useCallback`](/docs/hooks-reference.html#usecallback) フックを使えば再レンダーをまたいで同じコールバックを保持できるので、`shouldComponentUpdate` がうまく動作し続けます
840844

content/docs/hooks-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ useEffect(
179179
const value = useContext(MyContext);
180180
```
181181

182-
コンテクストオブジェクト(`React.createContext` からの戻り値)を受け取り、そのコンテクストの現在値をを返します。コンテクストの現在値は、ツリー内でこのフックを呼んだコンポーネントの直近にある `<MyContext.Provider>``value` の値によって決定されます。
182+
コンテクストオブジェクト(`React.createContext` からの戻り値)を受け取り、そのコンテクストの現在値を返します。コンテクストの現在値は、ツリー内でこのフックを呼んだコンポーネントの直近にある `<MyContext.Provider>``value` の値によって決定されます。
183183

184184
直近の `<MyContext.Provider>` が更新された場合、このフックはその `MyContext` プロバイダに渡された最新の `value` の値を使って再レンダーを発生させます。
185185

content/docs/hooks-rules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ prev: hooks-effect.html
1212

1313
### フックを呼び出すのはトップレベルのみ {#only-call-hooks-at-the-top-level}
1414

15-
**フックをループや条件分岐、あるいはネストされた関数内で呼び出してはいけません。**代わりに、あなたの React の関数のトップレベルでのみ呼び出してください。これを守ることで、コンポーネントがレンダーされる際に毎回同じ順番で呼び出されるということが保証されます。これが、複数回 `useState``useEffect` が呼び出された場合でも Raect がフックの状態を正しく保持するための仕組みです。(興味がある場合は[ページ下部](#explanation)で詳しく説明しています)
15+
**フックをループや条件分岐、あるいはネストされた関数内で呼び出してはいけません。**代わりに、あなたの React の関数のトップレベルでのみ呼び出してください。これを守ることで、コンポーネントがレンダーされる際に毎回同じ順番で呼び出されるということが保証されます。これが、複数回 `useState``useEffect` が呼び出された場合でも React がフックの状態を正しく保持するための仕組みです。(興味がある場合は[ページ下部](#explanation)で詳しく説明しています)
1616

1717
### フックを呼び出すのは React の関数内のみ {#only-call-hooks-from-react-functions}
1818

content/docs/reference-react-component.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class Welcome extends React.Component {
3131

3232
`React.Component` サブクラスで*必ず*定義しなければならない唯一のメソッドは [`render()`](#render) です。このページで説明されている他のすべてのメソッドは任意です。
3333

34-
**独自の基底コンポーネントクラスを作成しないことを強くおすすめします。**React コンポーネントでは、[コードの再利用は主に継承ではなく合成によって行われます]((/docs/composition-vs-inheritance.html))
34+
**独自の基底コンポーネントクラスを作成しないことを強くおすすめします。**React コンポーネントでは、[コードの再利用は主に継承ではなく合成によって行われます](/docs/composition-vs-inheritance.html)
3535

3636
>補足:
3737
>

content/docs/render-props.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ function withMouse(Component) {
239239

240240
このパターンが「レンダープロップ」という名前だからといって、必ずしも *`render` という名前の props を使う必要はない*ということを念頭に置いてください。実際、[コンポーネントがレンダーするものを知るために使う関数の props は、*その名前が何であれ*、技術的には「レンダープロップ」と呼ぶことができます](https://cdb.reacttraining.com/use-a-render-prop-50de598f11ce)
241241

242-
上記の例では `rendrer` を用いていますが、`children` プロパティを使っても同じくらい簡単です!
242+
上記の例では `render` を用いていますが、`children` プロパティを使っても同じくらい簡単です!
243243

244244
```js
245245
<Mouse children={mouse => (

content/docs/state-and-lifecycle.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ class Clock extends React.Component {
244244
}
245245
```
246246

247-
タイマー ID を直接 `this` 上に格納したことに注目してください
247+
タイマー ID を直接 `this` 上に(`this.timerID` として)格納したことに注目してください
248248

249249
`this.props` は React 自体によって設定され、また `this.state` は特別な意味を持っていますが、何かデータフローに影響しないデータ(タイマー ID のようなもの)を保存したい場合に、追加のフィールドを手動でクラスに追加することは自由です。
250250

content/docs/thinking-in-react.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ JSON のデータモデルをユーザーに向けて表示することはよく
7676

7777
### 幕間:Props vs State {#a-brief-interlude-props-vs-state}
7878

79-
React には 2 種類の「モデル」データが存在します。props と state です。このふたつの相違を理解するのは重要なことです。違いについて自信がない場合は、[公式の React ドキュメント](/docs/interactivity-and-dynamic-uis.html)に目を通すとよいでしょう。
79+
React には 2 種類の「モデル」データが存在します。props と state です。このふたつの相違を理解するのは重要なことです。違いについて自信がない場合は、[公式の React ドキュメント](/docs/state-and-lifecycle.html)に目を通すとよいでしょう[FAQ: state と props の違いは何ですか?](/docs/faq-state.html#what-is-the-difference-between-state-and-props) もご覧ください
8080

8181
## Step 3: UI 状態を表現する必要かつ十分な state を決定する {#step-3-identify-the-minimal-but-complete-representation-of-ui-state}
8282

0 commit comments

Comments
 (0)