Skip to content

Commit b2fa746

Browse files
authored
Merge pull request #124 from reactjs/sync-99e97c33
Sync with reactjs.org @ 99e97c3
2 parents 99935d9 + fcdb309 commit b2fa746

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

content/docs/codebase-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ Its main goals are:
211211
* Ability to return multiple elements from `render()`.
212212
* Better support for error boundaries.
213213

214-
You can read more about React Fiber Architecture [here](https://github.com/acdlite/react-fiber-architecture) and [here](https://blog.ag-grid.com/index.php/2018/11/29/inside-fiber-in-depth-overview-of-the-new-reconciliation-algorithm-in-react). While it has shipped with React 16, the async features are not enabled by default yet.
214+
You can read more about React Fiber Architecture [here](https://github.com/acdlite/react-fiber-architecture) and [here](https://medium.com/react-in-depth/inside-fiber-in-depth-overview-of-the-new-reconciliation-algorithm-in-react-e1c04700ef6e). While it has shipped with React 16, the async features are not enabled by default yet.
215215

216216
Its source code is located in [`packages/react-reconciler`](https://github.com/facebook/react/tree/master/packages/react-reconciler).
217217

content/docs/higher-order-components.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const EnhancedComponent = higherOrderComponent(WrappedComponent);
1414

1515
コンポーネントが props を UI に変換するのに対して、高階コンポーネントはコンポーネントを別のコンポーネントに変換します。
1616

17-
HOC は Redux における [`connect 関数`](https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options) や Relay における [`createFragmentContainer`](http://facebook.github.io/relay/docs/en/fragment-container.html) のように、サードパーティ製の React ライブラリでは一般的なものです。
17+
HOC は Redux における [`connect 関数`](https://github.com/reactjs/react-redux/blob/master/docs/api/connect.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options) や Relay における [`createFragmentContainer`](http://facebook.github.io/relay/docs/en/fragment-container.html) のように、サードパーティ製の React ライブラリでは一般的なものです。
1818

1919
このドキュメントでは、なぜ高階コンポーネントが便利で、自身でどのように記述するのかを説明します。
2020

content/docs/hooks-overview.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ prev: hooks-intro.html
1616
1717
**↑↑↑ それぞれの節の終わりに上のような黄色いボックスがあります。**より詳しい説明へのリンクとなっています。
1818

19-
## 📌 ステートフック {#-state-hook}
19+
## 📌 ステートフック {#state-hook}
2020

2121
この例ではカウンターを表示します。ボタンをクリックすると、カウンターの値が増えます:
2222

@@ -68,7 +68,7 @@ React は `useState` のような幾つかのビルトインのフックを提
6868
>
6969
> ステートフックについてはこちらのページを参照してください:[ステートフックの利用法](/docs/hooks-state.html).
7070
71-
## ⚡️ 副作用フック {#️-effect-hook}
71+
## ⚡️ 副作用フック {#️effect-hook}
7272

7373
これまでに React コンポーネントの内部から、外部データの取得や購読、あるいは手動での DOM 更新を行ったことがおありでしょう。これらの操作は他のコンポーネントに影響することがあり、またレンダーの最中に実行することができないので、われわれはこのような操作を "副作用 (side-effects)"、あるいは省略して "作用 (effects)" と呼んでいます。
7474

@@ -159,7 +159,7 @@ function FriendStatusWithCounter(props) {
159159
>
160160
> `useEffect` についての更なる詳細は[副作用フックの利用法](/docs/hooks-effect.html)を参照してください。
161161
162-
## ✌️ フックのルール {#️-rules-of-hooks}
162+
## ✌️ フックのルール {#️rules-of-hooks}
163163

164164
フックは JavaScript の関数ですが、2 つの追加のルールがあります。
165165

@@ -172,7 +172,7 @@ function FriendStatusWithCounter(props) {
172172
>
173173
> これらのルールについての詳細は[フックのルール](/docs/hooks-rules.html)を参照してください。
174174
175-
## 💡 独自フックの作成 {#-building-your-own-hooks}
175+
## 💡 独自フックの作成 {#building-your-own-hooks}
176176

177177
state を用いたロジックをコンポーネント間で再利用したいことがあります。これまでは、このような問題に対して 2 種類の人気の解決方法がありました。[高階コンポーネント](/docs/higher-order-components.html)[レンダープロップ](/docs/render-props.html) です。カスタムフックを利用することで、同様のことが、ツリー内のコンポーネントを増やすことなく行えるようになります。
178178

@@ -239,7 +239,7 @@ function FriendListItem(props) {
239239
>
240240
> カスタム Hooks についての詳しい情報は[独自フックの作成](/docs/hooks-custom.html)を参照してください。
241241
242-
## 🔌 その他のフック {#-other-hooks}
242+
## 🔌 その他のフック {#other-hooks}
243243

244244
その他にもいくつか、使用頻度は低いものの便利なフックが存在しています。例えば、[`useContext`](/docs/hooks-reference.html#usecontext) を使えば React のコンテクストをコンポーネントのネストなしに利用できるようになります:
245245

content/docs/hooks-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ function reducer(state, action) {
199199
}
200200
}
201201

202-
function Counter({initialCount}) {
202+
function Counter({initialState}) {
203203
const [state, dispatch] = useReducer(reducer, initialState);
204204
return (
205205
<>

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
"normalize.css": "^8.0.0",
4747
"prettier": "^1.7.4",
4848
"prismjs": "^1.15.0",
49-
"react": "16.7.0-alpha.0",
50-
"react-dom": "16.7.0-alpha.0",
49+
"react": "16.8.2",
50+
"react-dom": "16.8.2",
5151
"react-helmet": "^5.2.0",
5252
"react-live": "1.8.0-0",
5353
"remarkable": "^1.7.1",

src/components/LayoutFooter/Footer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ const Footer = ({layoutHasSidebar = false}: {layoutHasSidebar: boolean}) => (
179179
color: colors.subtleOnDark,
180180
paddingTop: 15,
181181
}}>
182-
Copyright © 2018 Facebook Inc.
182+
Copyright © 2019 Facebook Inc.
183183
</p>
184184
</section>
185185
</div>

src/site-constants.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// NOTE: We can't just use `location.toString()` because when we are rendering
99
// the SSR part in node.js we won't have a proper location.
1010
const urlRoot = 'https://ja.reactjs.org';
11-
const version = '16.8.1';
11+
const version = '16.8.2';
1212
const babelURL = 'https://unpkg.com/[email protected]/babel.min.js';
1313

1414
export {urlRoot, version, babelURL};

0 commit comments

Comments
 (0)