Skip to content

Commit 7e155a1

Browse files
committed
Resolve conflicts
1 parent f108283 commit 7e155a1

File tree

6 files changed

+12
-58
lines changed

6 files changed

+12
-58
lines changed

content/docs/addons-test-utils.md

+3-11
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,9 @@ it('can render and update a counter', () => {
122122
});
123123
```
124124

125-
<<<<<<< HEAD
126-
DOM イベントのディスパッチは、DOM コンテナが `document` に追加されたときだけ動作することを忘れないでください。[`react-testing-library`](https://github.com/kentcdodds/react-testing-library) のようなヘルパーを使えばボイラープレートのコードを減らせます。
127-
=======
128-
- Don't forget that dispatching DOM events only works when the DOM container is added to the `document`. You can use a library like [React Testing Library](https://testing-library.com/react) to reduce the boilerplate code.
125+
- DOM イベントのディスパッチは、DOM コンテナが `document` に追加されたときだけ動作することを忘れないでください。[React Testing Library](https://testing-library.com/react) のようなヘルパーを使えばボイラープレートのコードを減らせます。
129126

130-
- The [`recipes`](/docs/recipes.html) document contains more details on how `act()` behaves, with examples and usage.
131-
>>>>>>> ddbd064d41d719f9ec0c2f6a4227f797a5828310
127+
- [`recipes`](/docs/recipes.html) ドキュメントには `act()` がどのように動作するのかについて例や使用法を交えた詳しい解説があります。
132128

133129
* * *
134130

@@ -145,11 +141,7 @@ mockComponent(
145141

146142
> 補足:
147143
>
148-
<<<<<<< HEAD
149-
> `mockComponent()` はレガシーな API です。その代わりとして [shallow rendering](/docs/test-utils.html#shallow-rendering)[`jest.mock()`](https://facebook.github.io/jest/docs/en/tutorial-react-native.html#mock-native-modules-using-jestmock) の使用をおすすめします。
150-
=======
151-
> `mockComponent()` is a legacy API. We recommend using [`jest.mock()`](https://facebook.github.io/jest/docs/en/tutorial-react-native.html#mock-native-modules-using-jestmock) instead.
152-
>>>>>>> ddbd064d41d719f9ec0c2f6a4227f797a5828310
144+
> `mockComponent()` はレガシーな API です。その代わりとして [`jest.mock()`](https://facebook.github.io/jest/docs/en/tutorial-react-native.html#mock-native-modules-using-jestmock) の使用をおすすめします。
153145
154146
* * *
155147

content/docs/code-splitting.md

+1-10
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,10 @@ permalink: docs/code-splitting.html
66

77
## バンドル {#bundling}
88

9-
<<<<<<< HEAD
10-
多くの React アプリケーションは、[Webpack](https://webpack.js.org/)[Browserify](http://browserify.org/) などの
9+
多くの React アプリケーションは、[Webpack](https://webpack.js.org/)[Rollup](https://rollupjs.org/)[Browserify](http://browserify.org/) などの
1110
ツールを使ってファイルを「バンドル」しています。
1211
バンドルはインポートされたファイルをたどって、それらを 1 つのファイルにまとめるプロセスです。
1312
このバンドルされたファイルを Web ページ内に置くことによって、アプリ全体を一度に読み込むことができます。
14-
=======
15-
Most React apps will have their files "bundled" using tools like
16-
[Webpack](https://webpack.js.org/), [Rollup](https://rollupjs.org/) or
17-
[Browserify](http://browserify.org/).
18-
Bundling is the process of following imported files and merging them into a
19-
single file: a "bundle". This bundle can then be included on a webpage to load
20-
an entire app at once.
21-
>>>>>>> ddbd064d41d719f9ec0c2f6a4227f797a5828310
2213

2314
#### 例 {#example}
2415

content/docs/faq-styling.md

+1-5
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,4 @@ _注意:この機能は React の一部ではありません。サードパー
4848

4949
### React でアニメーションは使えますか? {#can-i-do-animations-in-react}
5050

51-
<<<<<<< HEAD
52-
React を使ってアニメーションを動かすことは可能です。例として、[React Transition Group](https://reactcommunity.org/react-transition-group/)[React Motion](https://github.com/chenglou/react-motion) をご覧ください。
53-
=======
54-
React can be used to power animations. See [React Transition Group](https://reactcommunity.org/react-transition-group/) and [React Motion](https://github.com/chenglou/react-motion) or [React Spring](https://github.com/react-spring/react-spring), for example.
55-
>>>>>>> ddbd064d41d719f9ec0c2f6a4227f797a5828310
51+
React を使ってアニメーションを動かすことは可能です。例として、[React Transition Group](https://reactcommunity.org/react-transition-group/)[React Motion](https://github.com/chenglou/react-motion)[React Spring](https://github.com/react-spring/react-spring) をご覧ください。

content/docs/hooks-faq.md

+7-23
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,9 @@ React Native はバージョン 0.59 以降でフックをサポートします
106106

107107
これまでと同様に全く同じ API を使用し続けることができます。それらは動作し続けます。
108108

109-
<<<<<<< HEAD
110-
将来的には、これらのライブラリの新バージョンが、例えば `useRedux()``useRouter()` のようなカスタムフックをエクスポートし、ラッパコンポーネントなしで同様の機能が使えるようになるかもしれません。
111-
=======
112-
React Redux since v7.1.0 [supports Hooks API](https://react-redux.js.org/api/hooks) and exposes hooks like `useDispatch` or `useSelector`.
109+
React Redux は v7.1.0 より [フック API をサポート](https://react-redux.js.org/api/hooks)しており、`useDispatch``useSelector` といったフックを提供しています。
113110

114-
Libraries like React Router might support hooks in the future.
115-
>>>>>>> ddbd064d41d719f9ec0c2f6a4227f797a5828310
111+
React Router のようなライブラリも将来的にフックをサポートするかもしれません。
116112

117113
### フックは静的型付けと組み合わせてうまく動きますか? {#do-hooks-work-with-static-typing}
118114

@@ -124,15 +120,11 @@ Libraries like React Router might support hooks in the future.
124120

125121
React の観点から見れば、フックを使ったコンポーネントは単なる普通のコンポーネントです。あなたのテストソリューションが React の内部動作に依存しているのでない場合、フックを使ったコンポーネントのテストのやり方は、あなたが普段コンポーネントをテストしているやり方と変わらないはずです。
126122

127-
<<<<<<< HEAD
128-
例えばこのようなカウンタコンポーネントがあるとしましょう:
129-
=======
130-
>Note
123+
> 補足
131124
>
132-
>[Testing Recipes](/docs/testing-recipes.html) include many examples that you can copy and paste.
125+
> [Testing Recipes](/docs/testing-recipes.html) にコピー・ペーストで使えるたくさんの例が掲載されています。
133126
134-
For example, let's say we have this counter component:
135-
>>>>>>> ddbd064d41d719f9ec0c2f6a4227f797a5828310
127+
例えばこのようなカウンタコンポーネントがあるとしましょう:
136128

137129
```js
138130
function Example() {
@@ -194,13 +186,9 @@ it('can render and update a counter', () => {
194186

195187
カスタムフックをテストしたい場合は、テスト内でコンポーネントを作って中でそのカスタムフックを使うようにしてください。そうすればそのコンポーネントをテストできます。
196188

197-
<<<<<<< HEAD
198-
ボイラープレートを減らすため、エンドユーザが使うのと同じ形でコンポーネントを使ってテストが記述できるように設計されている、[`react-testing-library`](https://git.io/react-testing-library) の利用をお勧めします。
199-
=======
200-
To reduce the boilerplate, we recommend using [React Testing Library](https://testing-library.com/react) which is designed to encourage writing tests that use your components as the end users do.
189+
ボイラープレートを減らすため、エンドユーザが使うのと同じ形でコンポーネントを使ってテストが記述できるように設計されている、[React Testing Library](https://testing-library.com/react) の利用をお勧めします。
201190

202-
For more information, check out [Testing Recipes](/docs/testing-recipes.html).
203-
>>>>>>> ddbd064d41d719f9ec0c2f6a4227f797a5828310
191+
詳細については、[Testing Recipes](/docs/testing-recipes.html) をご覧ください。
204192

205193
### [Lint ルール](https://www.npmjs.com/package/eslint-plugin-react-hooks) は具体的に何を強制するのですか? {#what-exactly-do-the-lint-rules-enforce}
206194

@@ -582,11 +570,7 @@ useEffect(() => {
582570

583571
>補足
584572
>
585-
<<<<<<< HEAD
586573
> [`eslint-plugin-react-hooks`](https://www.npmjs.com/package/eslint-plugin-react-hooks#installation) パッケージの一部として [`exhaustive-deps`](https://github.com/facebook/react/issues/14920) という ESLint のルールを提供しています。更新の一貫性が保たれていないコンポーネントを見つけるのに役立ちます。
587-
=======
588-
>We provide the [`exhaustive-deps`](https://github.com/facebook/react/issues/14920) ESLint rule as a part of the [`eslint-plugin-react-hooks`](https://www.npmjs.com/package/eslint-plugin-react-hooks#installation) package. It helps you find components that don't handle updates consistently.
589-
>>>>>>> ddbd064d41d719f9ec0c2f6a4227f797a5828310
590574
591575
これがなぜ重要なのか説明します。
592576

content/docs/nav.yml

-4
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,7 @@
128128
- id: hooks-reference
129129
title: フック API リファレンス
130130
- id: hooks-faq
131-
<<<<<<< HEAD
132131
title: フックに関するよくある質問
133-
=======
134-
title: Hooks FAQ
135132
- title: Testing
136133
items:
137134
- id: testing
@@ -140,7 +137,6 @@
140137
title: Testing Recipes
141138
- id: testing-environments
142139
title: Testing Environments
143-
>>>>>>> ddbd064d41d719f9ec0c2f6a4227f797a5828310
144140
- title: Contributing
145141
items:
146142
- id: how-to-contribute

src/site-constants.js

-5
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
1110
const urlRoot = 'https://ja.reactjs.org';
12-
const version = '16.8.6';
13-
=======
14-
const urlRoot = 'https://reactjs.org';
1511
const version = '16.9.0';
16-
>>>>>>> ddbd064d41d719f9ec0c2f6a4227f797a5828310
1712
const babelURL = 'https://unpkg.com/[email protected]/babel.min.js';
1813

1914
export {babelURL, urlRoot, version};

0 commit comments

Comments
 (0)