Skip to content

Commit 2624010

Browse files
committed
Resolve conflicts
1 parent 53fee16 commit 2624010

File tree

4 files changed

+5
-27
lines changed

4 files changed

+5
-27
lines changed

content/blog/2021-06-08-the-plan-for-react-18.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,11 @@ title: React 18に向けてのプラン
33
author: [acdlite, bvaughn, abernathyca, gaearon, rachelnabors, rickhanlonii, sebmarkbage, sethwebster]
44
---
55

6-
<<<<<<< HEAD
7-
React チームより幾つかのお知らせがあります!
8-
=======
9-
> Update Nov. 15th, 2021
6+
> 2021 年 11 月 15 日追記:
107
>
11-
> React 18 is now in beta. More information about the status of the release is [available in the React 18 Working Group post](https://github.com/reactwg/react-18/discussions/112).
8+
> React 18 はベータ版となりました。リリースに関する最新情報は [React 18 ワーキンググループの投稿で確認できます](https://github.com/reactwg/react-18/discussions/112)
129
13-
The React team is excited to share a few updates:
14-
>>>>>>> 17ad2cbc71f4c1fcc3f3f9ae528bfd292a9fced7
10+
React チームより幾つかのお知らせがあります!
1511

1612
1. 次のメジャーバージョンとなる React 18 リリースに向けての作業を開始しました。
1713
2. コミュニティが React 18 の新機能を段階的に導入できるようにするため、ワーキンググループを作成しました。

content/docs/create-a-new-react-app.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,7 @@ Gatsby の[オフィシャルガイド](https://www.gatsbyjs.org/docs/) およ
7575

7676
- **[Nx](https://nx.dev/react)** はフルスタックの monorepo 開発用ツールキットであり、React、Next.js、[Express](https://expressjs.com/) などのビルトインサポートを有しています。
7777

78-
<<<<<<< HEAD
79-
- **[Parcel](https://parceljs.org/)** は高速な、ゼロ設定のウェブアプリケーションバンドラであり、[React と共に利用](https://parceljs.org/recipes.html#react)できます。
80-
=======
81-
- **[Parcel](https://parceljs.org/)** is a fast, zero configuration web application bundler that [works with React](https://parceljs.org/recipes/react/).
82-
>>>>>>> 17ad2cbc71f4c1fcc3f3f9ae528bfd292a9fced7
78+
- **[Parcel](https://parceljs.org/)** は高速な、ゼロ設定のウェブアプリケーションバンドラであり、[React と共に利用](https://parceljs.org/recipes/react/)できます。
8379

8480
- **[Razzle](https://github.com/jaredpalmer/razzle)** は設定不要のサーバレンダリングフレームワークでありながら、Next.js よりも柔軟性があります。
8581

content/tutorial/tutorial.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1045,11 +1045,7 @@ Game の `render` メソッド内で `history` に `map` を作用させてみ
10451045

10461046
**[この時点でのコード全体を見る](https://codepen.io/gaearon/pen/EmmGEa?editors=0010)**
10471047

1048-
<<<<<<< HEAD
10491048
`history` 配列をループ処理する部分では、`step` という変数が `history` 内の現在の要素を参照し、`move` という変数が現在の要素のインデックスを参照しています。ここでは `step` はその後何にも割り当てないので、`move` の方にのみ興味があります。
1050-
=======
1051-
As we iterate through `history` array, `step` variable refers to the current `history` element value, and `move` refers to the current `history` element index. We are only interested in `move` here, hence `step` is not getting assigned to anything.
1052-
>>>>>>> 17ad2cbc71f4c1fcc3f3f9ae528bfd292a9fced7
10531049

10541050
ゲームの履歴内にある三目並べのそれぞれの着手に対応して、ボタン `<button>` を有するリストアイテム `<li>` を作ります。ボタンには `onClick` ハンドラがあり、それは `this.jumpTo()` というメソッドを呼び出します。まだ `jumpTo()` は実装していません。ひとまずこのコードにより、ゲーム内で行われた着手のリストが表示されるようになりましたが、同時に開発者ツールのコンソール内に以下の警告も出力されているはずです:
10551051

@@ -1151,12 +1147,8 @@ class Game extends React.Component {
11511147
// this method has not changed
11521148
}
11531149
```
1154-
<<<<<<< HEAD
1155-
`jumpTo` メソッド内では state の history プロパティは更新していないことに注意してください。これは、state の更新はマージされるから、より簡単に言うと、React は `setState` で直接指定されたプロパティのみを更新しほかの state はそのまま残すからです。詳しくは**[ドキュメントを参照](/docs/state-and-lifecycle.html#state-updates-are-merged)**
1156-
=======
11571150

1158-
Notice in `jumpTo` method, we haven't updated `history` property of the state. That is because state updates are merged or in more simple words React will update only the properties mentioned in `setState` method leaving the remaining state as that is. For more info **[see the documentation](/docs/state-and-lifecycle.html#state-updates-are-merged)**.
1159-
>>>>>>> 17ad2cbc71f4c1fcc3f3f9ae528bfd292a9fced7
1151+
`jumpTo` メソッド内では state の history プロパティは更新していないことに注意してください。これは、state の更新はマージされるから、より簡単に言うと、React は `setState` で直接指定されたプロパティのみを更新しほかの state はそのまま残すからです。詳しくは**[ドキュメントを参照](/docs/state-and-lifecycle.html#state-updates-are-merged)**
11601152

11611153
では次に、マス目をクリックしたときに実行される Game の `handleClick` メソッドに、いくつかの変更を加えます。
11621154

package.json

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,8 @@
7171
},
7272
"scripts": {
7373
"build": "gatsby clean && gatsby build",
74-
<<<<<<< HEAD
75-
"build-ci": "gatsby clean && gatsby build",
7674
"check-all": "npm-run-all prettier generate-ids --parallel lint flow lint:text",
7775
"ci-check": "npm-run-all prettier:diff --parallel lint flow lint:text",
78-
=======
79-
"check-all": "npm-run-all prettier generate-ids --parallel lint flow",
80-
"ci-check": "npm-run-all prettier:diff --parallel lint flow",
81-
>>>>>>> 17ad2cbc71f4c1fcc3f3f9ae528bfd292a9fced7
8276
"dev": "gatsby develop -H 0.0.0.0",
8377
"flow": "flow",
8478
"format:source": "prettier --config .prettierrc --write \"{gatsby-*.js,{flow-typed,plugins,src}/**/*.js}\"",

0 commit comments

Comments
 (0)