Skip to content

Commit 81ac565

Browse files
committed
Resolve conflicts (other than yarn.lock)
1 parent b10cecb commit 81ac565

14 files changed

+16
-97
lines changed

content/docs/codebase-overview.md

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,7 @@ redirect_from:
1515

1616
これらの規約のいずれかをあなたの React アプリケーションで推奨しているというわけでは必ずしもありません。規約の多くは歴史的な理由で存在しており、時間とともに変化する可能性があります。
1717

18-
<<<<<<< HEAD
19-
### Top-Level Folders {#top-level-folders}
20-
=======
21-
### 外部の依存関係 {#external-dependencies}
22-
23-
React はほとんど外部の依存関係を持っていません。通常、`require()` は React 自身のコードベースのファイルを指します。ただし、比較的にまれな例外がいくつかあります。
24-
25-
[fbjs リポジトリ](https://github.com/facebook/fbjs)は React がいくつかの小さなユーティリティを [Relay](https://github.com/facebook/relay) のようなライブラリと共有し、それらと同期を保つために存在しています。Facebook のエンジニアが必要に応じて変更を行えるようであってほしいので、Node のエコシステムにある同等の小さなモジュール群には依存しません。fbjs 内にあるユーティリティは全て非公開 API であり、それらは React のような Facebook プロジェクトでのみ使用されるためのものです。
26-
2718
### 最上位フォルダ {#top-level-folders}
28-
>>>>>>> ac4b5d74278df9484f640d83c9f136ecccf60fc4
2919

3020
[React リポジトリ](https://github.com/facebook/react)をクローンした後、プロジェクトのルートディレクトリに複数のフォルダがあることに気がつくでしょう:
3121

@@ -175,11 +165,7 @@ React core のコードはソースツリーの [`packages/react`](https://githu
175165

176166
### レンダラ {#renderers}
177167

178-
<<<<<<< HEAD
179-
React was originally created for the DOM but it was later adapted to also support native platforms with [React Native](https://reactnative.dev/). This introduced the concept of "renderers" to React internals.
180-
=======
181-
React は元々 DOM のために作成されましたが、後になって [React Native](http://facebook.github.io/react-native/) によりネイティブなプラットフォームもサポートするようになりました。これにより React の内部に "レンダラ (renderer)" の概念が導入されました。
182-
>>>>>>> ac4b5d74278df9484f640d83c9f136ecccf60fc4
168+
React は元々 DOM のために作成されましたが、後になって [React Native](https://reactnative.dev/) によりネイティブなプラットフォームもサポートするようになりました。これにより React の内部に "レンダラ (renderer)" の概念が導入されました。
183169

184170
**レンダラは React ツリーを、基盤となるプラットフォーム固有の呼び出しへと変換する方法を管理します。**
185171

content/docs/design-principles.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,7 @@ UI は動的ですが、props と state の同期的な `render()` 関数によ
126126

127127
### DOM を超えて {#beyond-the-dom}
128128

129-
<<<<<<< HEAD
130-
We see the value of React in the way it allows us to write components that have fewer bugs and compose together well. DOM is the original rendering target for React but [React Native](https://reactnative.dev/) is just as important both to Facebook and the community.
131-
=======
132-
私たちは React の価値を、バグの少ないコンポーネントを書いてうまく構成することができるという点に見ています。DOM は React のオリジナルのレンダーターゲットですが、[React Native](https://facebook.github.io/react-native/) は Facebook とコミュニティの両方において同じくらい重要です。
133-
>>>>>>> ac4b5d74278df9484f640d83c9f136ecccf60fc4
129+
私たちは React の価値を、バグの少ないコンポーネントを書いてうまく構成することができるという点に見ています。DOM は React のオリジナルのレンダーターゲットですが、[React Native](https://reactnative.dev/) は Facebook とコミュニティの両方において同じくらい重要です。
134130

135131
レンダラーに依存しないことは React の重要な設計上の制約です。それは内部表現にいくらかのオーバーヘッドを追加します。その一方で、コアへの改善はすべてのプラットフォームに行きわたります。
136132

content/docs/handling-events.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@ redirect_from:
88
- "docs/events-ko-KR.html"
99
---
1010

11-
<<<<<<< HEAD
12-
Handling events with React elements is very similar to handling events on DOM elements. There are some syntax differences:
13-
=======
1411
React でのイベント処理は DOM 要素のイベントの処理と非常に似ています。いくつかの文法的な違いがあります:
15-
>>>>>>> ac4b5d74278df9484f640d83c9f136ecccf60fc4
1612

1713
* React のイベントは小文字ではなく camelCase で名付けられています。
1814
* JSX ではイベントハンドラとして文字列ではなく関数を渡します。

content/docs/hooks-faq.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,7 @@ React バージョン 16.8.0 より、以下においてフックの安定版の
7171

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

74-
<<<<<<< HEAD
75-
[React Native 0.59](https://reactnative.dev/blog/2019/03/12/releasing-react-native-059) and above support Hooks.
76-
=======
77-
React Native は[バージョン 0.59](https://facebook.github.io/react-native/blog/2019/03/12/releasing-react-native-059) 以降でフックをサポートします。
78-
>>>>>>> ac4b5d74278df9484f640d83c9f136ecccf60fc4
74+
React Native は[バージョン 0.59](https://reactnative.dev/blog/2019/03/12/releasing-react-native-059) 以降でフックをサポートします。
7975

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

content/docs/hooks-intro.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,7 @@ function Example() {
3131

3232
> 補足
3333
>
34-
<<<<<<< HEAD
35-
>React 16.8.0 is the first release to support Hooks. When upgrading, don't forget to update all packages, including React DOM.
36-
>React Native supports Hooks since [the 0.59 release of React Native](https://reactnative.dev/blog/2019/03/12/releasing-react-native-059).
37-
=======
38-
> React 16.8.0 がフックをサポートする最初のバージョンです。アップグレードの際は、React DOM を含むすべてのパッケージの更新を忘れないようにしてください。React Native は [React Native 0.59 リリース](https://facebook.github.io/react-native/blog/2019/03/12/releasing-react-native-059)以降でフックをサポートします。
39-
>>>>>>> ac4b5d74278df9484f640d83c9f136ecccf60fc4
34+
> React 16.8.0 がフックをサポートする最初のバージョンです。アップグレードの際は、React DOM を含むすべてのパッケージの更新を忘れないようにしてください。React Native は [React Native 0.59 リリース](https://reactnative.dev/blog/2019/03/12/releasing-react-native-059)以降でフックをサポートします。
4035
4136
## ビデオによる紹介 {#video-introduction}
4237

content/docs/hooks-rules.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ prev: hooks-effect.html
2727

2828
これらの 2 つのルールを強制できる [`eslint-plugin-react-hooks`](https://www.npmjs.com/package/eslint-plugin-react-hooks) という ESLint のプラグインをリリースしました。試したい場合はあなたのプロジェクトに以下のようにして加えることができます。
2929

30-
This plugin is included by default in [Create React App](/docs/create-a-new-react-app.html#create-react-app).
30+
このプラグインは [Create React App](/docs/create-a-new-react-app.html#create-react-app) ではデフォルトで含まれています。
3131

3232
```bash
3333
npm install eslint-plugin-react-hooks --save-dev
@@ -48,13 +48,7 @@ npm install eslint-plugin-react-hooks --save-dev
4848
}
4949
```
5050

51-
<<<<<<< HEAD
52-
**You can skip to the next page explaining how to write [your own Hooks](/docs/hooks-custom.html) now.** On this page, we'll continue by explaining the reasoning behind these rules.
53-
=======
54-
このプラグインは [Create React App](/docs/create-a-new-react-app.html#create-react-app) ではデフォルトで含まれています。
55-
5651
**次のページまで飛ばして[独自のフック](/docs/hooks-custom.html)を書く方法について学んでも構いません。**このページの続きの部分ではこれらのルールの背後にある根拠について述べていきます。
57-
>>>>>>> ac4b5d74278df9484f640d83c9f136ecccf60fc4
5852

5953
## 解説 {#explanation}
6054

content/docs/how-to-contribute.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,9 @@ React リポジトリをクローンしたあと、`yarn` コマンドで依存
132132

133133
変更を試す一番簡単な方法は `yarn build react/index,react-dom/index --type=UMD` を実行し、`fixtures/packaging/babel-standalone/dev.html` を開くことです。このファイルは `build` フォルダの `react.development.js` を既に使用しているので、変更が反映されます。
134134

135-
<<<<<<< HEAD
136-
If you want to try your changes in your existing React project, you may copy `build/dist/react.development.js`, `build/dist/react-dom.development.js`, or any other build products into your app and use them instead of the stable version.
135+
あなたの加えた変更を既存の React プロジェクトで試したい場合、`build/dist/react.development.js``build/dist/react-dom.development.js`、もしくは他のビルドされたファイルをあなたのアプリケーションにコピーして安定版の代わりに使用することができます。
137136

138-
If your project uses React from npm, you may delete `react` and `react-dom` in its dependencies and use `yarn link` to point them to your local `build` folder. Note that **instead of `--type=UMD` you'll want to pass `--type=NODE` when building**. You'll also need to build the `scheduler` package:
139-
=======
140-
あなたの加えた変更を既存の React プロジェクトで試したい場合、`build/dist/react.development.js``build/dist/react-dom.development.js`、もしくは他のビルドされたファイルをあなたのアプリケーションにコピーして安定版の代わりに使用することができます。もし、npm 版の React を使用している場合は `react``react-dom` を依存関係から削除し、`yarn link` を使用してそれらがローカルの `build` を指すようにしてください:
141-
>>>>>>> ac4b5d74278df9484f640d83c9f136ecccf60fc4
137+
もし、npm 版の React を使用している場合は `react``react-dom` を依存関係から削除し、`yarn link` を使用してそれらがローカルの `build` フォルダを指すようにしてください。ビルド時には **`--type=UMD` の代わりに `--type=NODE` を渡す必要があることに注意してください**。また `scheduler` パッケージもビルドする必要があります:
142138

143139
```sh
144140
cd ~/path_to_your_react_clone/
@@ -155,13 +151,9 @@ yarn link react react-dom
155151

156152
`yarn build` を React フォルダで実行するたびに、あなたのプロジェクトの `node_modules` フォルダに更新されたバージョンが現れるでしょう。その後、プロジェクトをビルドし直して変更を試すことができます。
157153

158-
<<<<<<< HEAD
159-
If some package is still missing (e.g. maybe you use `react-dom/server` in your project), you can always do a full build with `yarn build`. Note that running `yarn build` without options takes a long time.
154+
もしまだいくつかのパッケージが不足している場合(例えばプロジェクトで `react-dom/server` を使っている場合)、常に `yarn build` でフルのビルドを行うことができます。ただしオプションなしの `yarn build` は時間がかかることに注意してください。
160155

161-
We still require that your pull request contains unit tests for any new functionality. This way we can ensure that we don't break your code in the future.
162-
=======
163-
ただしプルリクエストにあなたの新機能に応じたユニットテストを含めることは必須です。これによって将来あなたのコードを壊してしまわないことが担保されます。
164-
>>>>>>> ac4b5d74278df9484f640d83c9f136ecccf60fc4
156+
プルリクエストにあなたの新機能に応じたユニットテストを含めることは必須です。これによって将来あなたのコードを壊してしまわないことが担保されます。
165157

166158
### スタイルガイド {#style-guide}
167159

content/docs/jsx-in-depth.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,11 +227,7 @@ function NumberDescriber(props) {
227227
<MyTextBox autocomplete={true} />
228228
```
229229

230-
<<<<<<< HEAD
231-
In general, we don't recommend *not* passing a value for a prop, because it can be confused with the [ES6 object shorthand](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Object_initializer#New_notations_in_ECMAScript_2015) `{foo}` which is short for `{foo: foo}` rather than `{foo: true}`. This behavior is just there so that it matches the behavior of HTML.
232-
=======
233230
特別な理由がある場合を除いて、このように値を省略することは推奨していません。[ES6 におけるオブジェクトの簡略表記](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Object_initializer#New_notations_in_ECMAScript_2015)においては、`{foo}``{foo: true}` ではなく `{foo: foo}` を意味するため、HTML の動作に似せて作られたこの機能はかえって混乱をきたす可能性があります。
234-
>>>>>>> ac4b5d74278df9484f640d83c9f136ecccf60fc4
235231

236232
### 属性の展開 {#spread-attributes}
237233

content/docs/reference-react.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,7 @@ const MyComponent = React.memo(function MyComponent(props) {
128128

129129
もしある関数コンポーネントが同じ props を与えられたときに同じ結果をレンダーするなら、結果を記憶してパフォーマンスを向上させるためにそれを `React.memo` でラップすることができます。つまり、React はコンポーネントのレンダーをスキップし、最後のレンダー結果を再利用します。
130130

131-
<<<<<<< HEAD
132-
`React.memo` only checks for prop changes. If your function component wrapped in `React.memo` has a [`useState`](/docs/hooks-state.html) or [`useContext`](/docs/hooks-reference.html#usecontext) Hook in its implementation, it will still rerender when state or context change.
133-
=======
134-
`React.memo` は props の変更に対してのみ効果があります。`React.memo` でラップしているあなたのコンポーネントがその実装内で [`useState`](/docs/hooks-state.html)[`useContext`](/docs/hooks-reference.html#usecontext) フックを使っている場合、state やコンテクストの変化に応じた再レンダーは発生します。
135-
>>>>>>> ac4b5d74278df9484f640d83c9f136ecccf60fc4
131+
`React.memo` は props の変更のみをチェックします。`React.memo` でラップしているあなたのコンポーネントがその実装内で [`useState`](/docs/hooks-state.html)[`useContext`](/docs/hooks-reference.html#usecontext) フックを使っている場合、state やコンテクストの変化に応じた再レンダーは発生します。
136132

137133
デフォルトでは props オブジェクト内の複雑なオブジェクトは浅い比較のみが行われます。比較を制御したい場合は 2 番目の引数でカスタム比較関数を指定できます。
138134

content/docs/refs-and-the-dom.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -167,15 +167,9 @@ class Parent extends React.Component {
167167

168168
```javascript{2,3,6,13}
169169
function CustomTextInput(props) {
170-
<<<<<<< HEAD
171-
// textInput must be declared here so the ref can refer to it
170+
// ref が参照できるように、textInput をここで宣言する必要があります。
172171
const textInput = useRef(null);
173172
174-
=======
175-
// ref が参照できるように、textInput をここで宣言する必要があります。
176-
let textInput = useRef();
177-
178-
>>>>>>> ac4b5d74278df9484f640d83c9f136ecccf60fc4
179173
function handleClick() {
180174
textInput.current.focus();
181175
}

content/home/marketing/learn-once-write-anywhere.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,4 @@ order: 2
55

66
React と組み合わせて使用する技術に制限はありません。React を使って新しい機能を追加する際に、既存のソースコードを書き換える必要はありません。
77

8-
<<<<<<< HEAD
9-
React can also render on the server using Node and power mobile apps using [React Native](https://reactnative.dev/).
10-
=======
11-
React は Node を使ったサーバー上でもレンダーできますし、[React Native](https://facebook.github.io/react-native/) を使うことでモバイルアプリケーションの中でも動きます。
12-
>>>>>>> ac4b5d74278df9484f640d83c9f136ecccf60fc4
8+
React は Node を使ったサーバー上でもレンダーできますし、[React Native](https://reactnative.dev/) を使うことでモバイルアプリケーションの中でも動きます。

examples/context/motivation-solution.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,9 @@ class App extends React.Component {
1919
}
2020

2121
// highlight-range{1,2}
22-
<<<<<<< HEAD
23-
// A component in the middle doesn't have to
24-
// pass the theme down explicitly anymore.
25-
function Toolbar() {
26-
=======
27-
// 間のコンポーネントはもう明示的にテーマを
22+
// 中間のコンポーネントはもう明示的にテーマを
2823
// 下に渡す必要はありません。
29-
function Toolbar(props) {
30-
>>>>>>> ac4b5d74278df9484f640d83c9f136ecccf60fc4
24+
function Toolbar() {
3125
return (
3226
<div>
3327
<ThemedButton />

src/components/MarkdownPage/MarkdownPage.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,8 @@ const MarkdownPage = ({
112112
<div css={{marginTop: 80}}>
113113
<a
114114
css={sharedStyles.articleLayout.editLink}
115-
<<<<<<< HEAD
116-
href={`https://github.com/reactjs/reactjs.org/tree/master/${markdownRemark.fields.path}`}>
117-
Edit this page
118-
=======
119-
href={`https://github.com/reactjs/ja.reactjs.org/tree/master/${
120-
markdownRemark.fields.path
121-
}`}>
115+
href={`https://github.com/reactjs/ja.reactjs.org/tree/master/${markdownRemark.fields.path}`}>
122116
このページを編集する
123-
>>>>>>> ac4b5d74278df9484f640d83c9f136ecccf60fc4
124117
</a>
125118
</div>
126119
)}

src/site-constants.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,8 @@
77

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.
10-
<<<<<<< HEAD
11-
const urlRoot = 'https://reactjs.org';
12-
const version = '16.13.1';
13-
=======
1410
const urlRoot = 'https://ja.reactjs.org';
15-
const version = '16.13.0';
16-
>>>>>>> ac4b5d74278df9484f640d83c9f136ecccf60fc4
11+
const version = '16.13.1';
1712
const babelURL = 'https://unpkg.com/[email protected]/babel.min.js';
1813

1914
export {babelURL, urlRoot, version};

0 commit comments

Comments
 (0)