Skip to content

Commit 45737da

Browse files
committed
Resolve conflicts
1 parent 51627c3 commit 45737da

28 files changed

+66
-335
lines changed

.github/PULL_REQUEST_TEMPLATE.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@ Thank you for the PR! Contributors like you keep React awesome!
44
55
Please see the Contribution Guide for guidelines:
66
7-
<<<<<<< HEAD
8-
https://github.com/reactjs/ja.reactjs.org/blob/master/CONTRIBUTING.md
9-
=======
10-
https://github.com/reactjs/reactjs.org/blob/main/CONTRIBUTING.md
11-
>>>>>>> f2158e36715acc001c8317e20dc4f45f9e2089f3
7+
https://github.com/reactjs/ja.reactjs.org/blob/main/CONTRIBUTING.md
128
139
If your PR references an existing issue, please add the issue number below
1410

README.md

+1-10
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,12 @@ This repo contains the source code and documentation powering [ja.reactjs.org](h
2828

2929
### Guidelines
3030

31-
<<<<<<< HEAD
32-
The documentation is divided into several sections with a different tone and purpose. If you plan to write more than a few sentences, you might find it helpful to get familiar with the [contributing guidelines](https://github.com/reactjs/ja.reactjs.org/blob/master/CONTRIBUTING.md#guidelines-for-text) for the appropriate sections.
33-
34-
### Create a branch
35-
36-
1. `git checkout master` from any folder in your local `ja.reactjs.org` repository
37-
1. `git pull origin master` to ensure you have the latest main code
38-
=======
39-
The documentation is divided into several sections with a different tone and purpose. If you plan to write more than a few sentences, you might find it helpful to get familiar with the [contributing guidelines](https://github.com/reactjs/reactjs.org/blob/main/CONTRIBUTING.md#guidelines-for-text) for the appropriate sections.
31+
The documentation is divided into several sections with a different tone and purpose. If you plan to write more than a few sentences, you might find it helpful to get familiar with the [contributing guidelines](https://github.com/reactjs/ja.reactjs.org/blob/main/CONTRIBUTING.md#guidelines-for-text) for the appropriate sections.
4032

4133
### Create a branch
4234

4335
1. `git checkout main` from any folder in your local `reactjs.org` repository
4436
1. `git pull origin main` to ensure you have the latest main code
45-
>>>>>>> f2158e36715acc001c8317e20dc4f45f9e2089f3
4637
1. `git checkout -b the-name-of-my-branch` (replacing `the-name-of-my-branch` with a suitable name) to create a branch
4738

4839
### Make the change

content/blog/2020-08-10-react-v17-rc.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,7 @@ useEffect(() => {
199199
});
200200
```
201201

202-
<<<<<<< HEAD
203-
[我々の `eslint-plugin-react-hooks/exhaustive-deps` lint ルール](https://github.com/facebook/react/tree/master/packages/eslint-plugin-react-hooks)(是非使うようにしましょう!)は常にこれを警告してきましたので、このような問題はあまり起きないと思います。
204-
=======
205-
We don't expect this to be a common problem because [our `eslint-plugin-react-hooks/exhaustive-deps` lint rule](https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks) (make sure you use it!) has always warned about this.
206-
>>>>>>> f2158e36715acc001c8317e20dc4f45f9e2089f3
202+
[我々の `eslint-plugin-react-hooks/exhaustive-deps` lint ルール](https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks)(是非使うようにしましょう!)は常にこれを警告してきましたので、このような問題はあまり起きないと思います。
207203

208204
### Undefined を返した場合の一貫性のあるエラー {#consistent-errors-for-returning-undefined}
209205

content/docs/accessibility.md

+2-10
Original file line numberDiff line numberDiff line change
@@ -226,11 +226,7 @@ class Parent extends React.Component {
226226
this.inputElement.current.focus();
227227
```
228228

229-
<<<<<<< HEAD
230-
コンポーネントを拡張するのに高階コンポーネント (HOC) を使う場合は、React の `forwardRef` 関数を用いて、関数に囲われたコンポーネントに [ref をフォワーディング (forwarding) する](/docs/forwarding-refs.html) ことをおすすめします。もし、サードパーティの高階コンポーネントが ref フォワーディングを実装していないときでも、上記のパターンはフォールバックとして使えます。
231-
=======
232-
When using a [HOC](/docs/higher-order-components.html) to extend components, it is recommended to [forward the ref](/docs/forwarding-refs.html) to the wrapped component using the `forwardRef` function of React. If a third party HOC does not implement ref forwarding, the above pattern can still be used as a fallback.
233-
>>>>>>> f2158e36715acc001c8317e20dc4f45f9e2089f3
229+
コンポーネントを拡張するのに[高階コンポーネント (HOC)](/docs/higher-order-components.html) を使う場合は、React の `forwardRef` 関数を用いて、関数に囲われたコンポーネントに [ref をフォワーディング (forwarding) する](/docs/forwarding-refs.html) ことをおすすめします。もし、サードパーティの高階コンポーネントが ref フォワーディングを実装していないときでも、上記のパターンはフォールバックとして使えます。
234230

235231
良いフォーカス管理の例は [react-aria-modal](https://github.com/davidtheclark/react-aria-modal) です。これは完全にアクセシブルなモーダルウィンドウの比較的珍しい例です。このライブラリは、最初のフォーカスをキャンセルボタンに設定し(これは、キーボードを使っているユーザがうっかり次のアクションに移ってしまうのを防ぎます)、モーダルの中でキーボードフォーカスが閉じているだけでなく、最初にモーダルを開いた要素にフォーカスを戻してもくれます。
236232

@@ -454,11 +450,7 @@ Deque System はアプリケーションの自動化された E2E アクセシ
454450

455451
[The Accessibility Engine](https://www.deque.com/products/axe/) もしくは aXe は、`aXe-core` により構築されたアクセシビリティを検査するブラウザ拡張機能です。
456452

457-
<<<<<<< HEAD
458-
[react-axe](https://github.com/dylanb/react-axe) モジュールを使用して、開発時やデバッグ時にこれらによるアクセシビリティの検査結果を直接コンソールへ出力させることもできます。
459-
=======
460-
You can also use the [@axe-core/react](https://github.com/dequelabs/axe-core-npm/tree/develop/packages/react) module to report these accessibility findings directly to the console while developing and debugging.
461-
>>>>>>> f2158e36715acc001c8317e20dc4f45f9e2089f3
453+
[@axe-core/react](https://github.com/dequelabs/axe-core-npm/tree/develop/packages/react) モジュールを使用して、開発時やデバッグ時にこれらによるアクセシビリティの検査結果を直接コンソールへ出力させることもできます。
462454

463455
#### WebAIM WAVE {#webaim-wave}
464456

content/docs/add-react-to-a-website.md

+2-14
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,7 @@ React コンポーネントを HTML ページの一箇所だけではなくい
123123

124124
## オプション:React で JSX を使う {#optional-try-react-with-jsx}
125125

126-
<<<<<<< HEAD
127126
今までの例では、ブラウザにもともと備わっている機能のみ使ってきました。React コンポーネントを表示するために次のような JavaScript の関数を呼び出していたのはそのためです。
128-
=======
129-
In the examples above, we only relied on features that are natively supported by browsers. This is why we used a JavaScript function call to tell React what to display:
130-
>>>>>>> f2158e36715acc001c8317e20dc4f45f9e2089f3
131127

132128
```js
133129
const e = React.createElement;
@@ -153,11 +149,7 @@ return (
153149

154150
これらふたつのスニペットはまったく同じ内容です。**JSX の使用は[完全にオプションです](/docs/react-without-jsx.html)**が、React はもちろん他のライブラリで UI を記述する際にも、JSX は多くの人に支持されています。
155151

156-
<<<<<<< HEAD
157-
[このコンバータ](https://babeljs.io/en/repl#?babili=false&browsers=&build=&builtIns=false&spec=false&loose=false&code_lz=DwIwrgLhD2B2AEcDCAbAlgYwNYF4DeAFAJTw4B88EAFmgM4B0tAphAMoQCGETBe86WJgBMAXJQBOYJvAC-RGWQBQ8FfAAyaQYuAB6cFDhkgA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&timeTravel=false&sourceType=module&lineWrap=true&presets=es2015%2Creact%2Cstage-2&prettier=false&targets=&version=7.4.3)上で JSX を使って遊んでみてください。
158-
=======
159-
You can play with JSX using [this online converter](https://babeljs.io/en/repl#?babili=false&browsers=&build=&builtIns=false&spec=false&loose=false&code_lz=DwIwrgLhD2B2AEcDCAbAlgYwNYF4DeAFAJTw4B88EAFmgM4B0tAphAMoQCGETBe86WJgBMAXJQBOYJvAC-RGWQBQ8FfAAyaQYuAB6cFDhkgA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&timeTravel=false&sourceType=module&lineWrap=true&presets=es2015%2Creact%2Cstage-2&prettier=false&targets=&version=7.15.7).
160-
>>>>>>> f2158e36715acc001c8317e20dc4f45f9e2089f3
152+
[このコンバータ](https://babeljs.io/en/repl#?babili=false&browsers=&build=&builtIns=false&spec=false&loose=false&code_lz=DwIwrgLhD2B2AEcDCAbAlgYwNYF4DeAFAJTw4B88EAFmgM4B0tAphAMoQCGETBe86WJgBMAXJQBOYJvAC-RGWQBQ8FfAAyaQYuAB6cFDhkgA&debug=false&forceAllTransforms=false&shippedProposals=false&circleciRepo=&evaluate=false&fileSize=false&timeTravel=false&sourceType=module&lineWrap=true&presets=es2015%2Creact%2Cstage-2&prettier=false&targets=&version=7.15.7)上で JSX を使って遊んでみてください。
161153

162154
### JSX を手軽に試してみる {#quickly-try-jsx}
163155

@@ -167,11 +159,7 @@ You can play with JSX using [this online converter](https://babeljs.io/en/repl#?
167159
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
168160
```
169161

170-
<<<<<<< HEAD
171-
この状態で、任意の `<script>` タグに `type="text/babel"` 属性を持たせることで、その `<script>` タグの中では JSX が使えるようになります。[サンプル用 HTML ファイル](https://raw.githubusercontent.com/reactjs/reactjs.org/master/static/html/single-file-example.html)をダウンロードして遊んでみてください。
172-
=======
173-
Now you can use JSX in any `<script>` tag by adding `type="text/babel"` attribute to it. Here is [an example HTML file with JSX](https://raw.githubusercontent.com/reactjs/reactjs.org/main/static/html/single-file-example.html) that you can download and play with.
174-
>>>>>>> f2158e36715acc001c8317e20dc4f45f9e2089f3
162+
この状態で、任意の `<script>` タグに `type="text/babel"` 属性を持たせることで、その `<script>` タグの中では JSX が使えるようになります。[サンプル用 HTML ファイル](https://raw.githubusercontent.com/reactjs/reactjs.org/main/static/html/single-file-example.html)をダウンロードして遊んでみてください。
175163

176164
この方法は学習やシンプルなデモの作成にはいいですが、これをそのまま使うとウェブサイトは重くなってしまい、**本番環境には向きません**。次のレベルに進む準備ができたら、先ほど追加した `<script>` タグと `type="text/babel"` 属性は削除してしまいましょう。そして次のセクションに進み、JSX プリプロセッサを設定して `<script>` タグを自動変換するようにしましょう。
177165

content/docs/addons-test-utils.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -141,11 +141,7 @@ mockComponent(
141141

142142
> 補足:
143143
>
144-
<<<<<<< HEAD
145-
> `mockComponent()` はレガシーな API です。その代わりとして [`jest.mock()`](https://facebook.github.io/jest/docs/en/tutorial-react-native.html#mock-native-modules-using-jestmock) の使用をおすすめします。
146-
=======
147-
> `mockComponent()` is a legacy API. We recommend using [`jest.mock()`](https://jestjs.io/docs/tutorial-react-native#mock-native-modules-using-jestmock) instead.
148-
>>>>>>> f2158e36715acc001c8317e20dc4f45f9e2089f3
144+
> `mockComponent()` はレガシーな API です。その代わりとして [`jest.mock()`](https://jestjs.io/docs/tutorial-react-native#mock-native-modules-using-jestmock) の使用をおすすめします。
149145
150146
* * *
151147

0 commit comments

Comments
 (0)