Skip to content

Commit 4af604b

Browse files
committed
Resolve conflicts
1 parent 5388bc3 commit 4af604b

21 files changed

+38
-242
lines changed

src/content/blog/index.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@ title: React Blog
44

55
<Intro>
66

7-
<<<<<<< HEAD
87
React チームからの公式な更新のお知らせはこのブログに掲載されます。リリースノートや非推奨化のお知らせなどの重要なことはすべて、まずこちらに掲載されます。
9-
=======
10-
This blog is the official source for the updates from the React team. Anything important, including release notes or deprecation notices, will be posted here first.
11-
>>>>>>> 3ee3a60a1bcc687c0b87039a3a6582e3b1d6887c
128

139
Bluesky の [@react.dev](https://bsky.app/profile/react.dev) や Twitter の [@reactjs](https://twitter.com/reactjs) アカウントをフォローすることもできますが、このブログさえ読んでいれば、重要なことを見逃す心配はありません。
1410

src/content/community/index.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,4 @@ Stack Overflow は、コードレベルの質問をしたい場合や、特定
2929

3030
## ニュース {/*news*/}
3131

32-
<<<<<<< HEAD
33-
React の最新ニュースについては、[Twitter の **@reactjs**](https://twitter.com/reactjs) と、このウェブサイト上の[公式 React ブログ](/blog/)をフォローしてください。
34-
=======
35-
For the latest news about React, [follow **@reactjs** on Twitter](https://twitter.com/reactjs), [**@react.dev** on Bluesky](https://bsky.app/profile/react.dev) and the [official React blog](/blog/) on this website.
36-
>>>>>>> 3ee3a60a1bcc687c0b87039a3a6582e3b1d6887c
32+
React の最新ニュースについては、[Twitter の **@reactjs**](https://twitter.com/reactjs)[Bluesky の **@react.dev**](https://bsky.app/profile/react.dev) や、このウェブサイトの[公式 React ブログ](/blog/)をフォローしてください。

src/content/learn/build-a-react-app-from-scratch.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,7 @@ Rsbuild には、ファストリフレッシュ、JSX、TypeScript、スタイ
6565

6666
#### React Native 用の Metro {/*react-native*/}
6767

68-
<<<<<<< HEAD
6968
React Native をゼロから始める場合は、React Native 用の JavaScript バンドラである [Metro](https://metrobundler.dev/) を使用する必要があります。Metro は iOS や Android などのプラットフォーム向けのバンドル機能をサポートしていますが、上記で紹介したツールと比較すると多くの機能が不足しています。プロジェクトが React Native のサポートを必要としているのでない限り、Vite、Parcel、または Rsbuild から始めることをお勧めします。
70-
=======
71-
If you're starting from scratch with React Native you'll need to use [Metro](https://metrobundler.dev/), the JavaScript bundler for React Native. Metro supports bundling for platforms like iOS and Android, but lacks many features when compared to the tools here. We recommend starting with Vite, Parcel, or Rsbuild unless your project requires React Native support.
72-
>>>>>>> 3ee3a60a1bcc687c0b87039a3a6582e3b1d6887c
7369

7470
</Note>
7571

@@ -119,17 +115,10 @@ GraphQL API からデータを取得する場合、以下の使用をお勧め
119115

120116
ルートごとにコードを分割するだけでなく、バンドルやデータフェッチと統合することで、アプリの初期読み込み時間とアプリの最大可視コンテンツのレンダー時間 ([Largest Contentful Paint](https://web.dev/articles/lcp)) を短縮できます。
121117

122-
<<<<<<< HEAD
123118
コード分割の手順については、ビルドツールのドキュメントを参照してください。
124-
- [Vite のビルド最適化](https://v3.vitejs.dev/guide/features.html#build-optimizations)
119+
- [Vite のビルド最適化](https://vite.dev/guide/features.html#build-optimizations)
125120
- [Parcel のコード分割](https://parceljs.org/features/code-splitting/)
126121
- [Rsbuild のコード分割](https://rsbuild.dev/guide/optimization/code-splitting)
127-
=======
128-
For code-splitting instructions, see your build tool docs:
129-
- [Vite build optimizations](https://vite.dev/guide/features.html#build-optimizations)
130-
- [Parcel code splitting](https://parceljs.org/features/code-splitting/)
131-
- [Rsbuild code splitting](https://rsbuild.dev/guide/optimization/code-splitting)
132-
>>>>>>> 3ee3a60a1bcc687c0b87039a3a6582e3b1d6887c
133122

134123
### アプリケーションパフォーマンスの向上 {/*improving-application-performance*/}
135124

src/content/learn/creating-a-react-app.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,7 @@ React を使って新しいアプリやウェブサイトを作成したい場
3232
npx create-next-app@latest
3333
</TerminalBlock>
3434

35-
<<<<<<< HEAD
36-
Next.js は [Vercel](https://vercel.com/) によってメンテナンスされています。Next.js アプリを Node.js やサーバレスホスティング、または独自のサーバに[デプロイできます](https://nextjs.org/docs/app/building-your-application/deploying)。Next.js はまた、サーバを必要としない[静的エクスポート](https://nextjs.org/docs/app/building-your-application/deploying/static-exports)をサポートしています。Vercel はさらにオプトインの有料クラウドサービスも提供しています。
37-
=======
38-
Next.js is maintained by [Vercel](https://vercel.com/). You can [deploy a Next.js app](https://nextjs.org/docs/app/building-your-application/deploying) to any hosting provider that supports Node.js or Docker containers, or to your own server. Next.js also supports [static export](https://nextjs.org/docs/app/building-your-application/deploying/static-exports) which doesn't require a server.
39-
>>>>>>> 3ee3a60a1bcc687c0b87039a3a6582e3b1d6887c
35+
Next.js は [Vercel](https://vercel.com/) によってメンテナンスされています。Next.js アプリは Node.js や Docker コンテナをサポートする任意のホスティングプロバイダ上で[デプロイできます](https://nextjs.org/docs/app/building-your-application/deploying)。Next.js はまた、サーバを必要としない[静的エクスポート](https://nextjs.org/docs/app/building-your-application/deploying/static-exports)をサポートしています。
4036

4137
### React Router (v7) {/*react-router-v7*/}
4238

@@ -110,11 +106,7 @@ Next.js の App Router は、[サスペンス (Suspense) を使用したデー
110106

111107
ゼロから始めることでより柔軟性が得られますが、ルーティング、データフェッチ、その他の一般的な使用パターンにどのツールを使用するかを選択する必要があります。これは、既存のフレームワークを使用する代わりに自分自身でフレームワークを構築するようなものです。[おすすめのフルスタックフレームワーク](#full-stack-frameworks)には、これらの問題に対する組み込みの解決策があります。
112108

113-
<<<<<<< HEAD
114109
独自のソリューションを構築したい場合は、[ゼロからの React アプリ構築](/learn/build-a-react-app-from-scratch)ガイドを参照し、[Vite](https://vite.dev/)[Parcel](https://parceljs.org/)、または [RSbuild](https://rsbuild.dev/) のようなビルドツールを使って新しい React プロジェクトをセットアップする方法を確認してください。
115-
=======
116-
If you want to build your own solutions, see our guide to [build a React app from Scratch](/learn/build-a-react-app-from-scratch) for instructions on how to set up a new React project starting with a build tool like [Vite](https://vite.dev/), [Parcel](https://parceljs.org/), or [RSbuild](https://rsbuild.dev/).
117-
>>>>>>> 3ee3a60a1bcc687c0b87039a3a6582e3b1d6887c
118110

119111
-----
120112

src/content/learn/preserving-and-resetting-state.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -672,11 +672,7 @@ label {
672672

673673
</Sandpack>
674674

675-
<<<<<<< HEAD
676675
チェックボックスをクリックするとカウンタの state がリセットされます。`Counter` をレンダーしていることは同じでも、`<div>` の最初の子が `section` から `div` に変わっています。子側の `section` が DOM から削除されたとき、その下のツリー全体(`Counter` とその state を含む)も破棄されたのです。
677-
=======
678-
The counter state gets reset when you click the checkbox. Although you render a `Counter`, the first child of the `div` changes from a `section` to a `div`. When the child `section` was removed from the DOM, the whole tree below it (including the `Counter` and its state) was destroyed as well.
679-
>>>>>>> 3ee3a60a1bcc687c0b87039a3a6582e3b1d6887c
680676

681677
<DiagramGroup>
682678

src/content/learn/react-compiler.md

Lines changed: 9 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,6 @@ title: React Compiler
66
このページでは、React Compiler の概要と、試用の方法について説明します。
77
</Intro>
88

9-
<<<<<<< HEAD
10-
<Wip>
11-
このドキュメントはまだ作成中です。詳細なドキュメントは [React Compiler Working Group リポジトリ](https://github.com/reactwg/react-compiler/discussions)にあり、安定化後にこちらのドキュメントに反映されます。
12-
</Wip>
13-
14-
=======
15-
>>>>>>> 3ee3a60a1bcc687c0b87039a3a6582e3b1d6887c
169
<YouWillLearn>
1710

1811
* コンパイラを使い始める
@@ -22,29 +15,16 @@ title: React Compiler
2215
</YouWillLearn>
2316

2417
<Note>
25-
<<<<<<< HEAD
26-
React Compiler はベータ版の新しいコンパイラであり、コミュニティから早期フィードバックを得るためにオープンソース化したものです。Meta などの企業の本番環境で利用されていますが、あなたのアプリでコンパイラを本番利用できるかどうかは、コードベースの健全性や、[React のルール](/reference/rules)をどの程度守れているかに依存します。
27-
28-
最新版のベータリリースは `@beta` タグで、またデイリーの実験的リリースは `@experimental` タグで利用可能です。
29-
</Note>
30-
31-
React Compiler は新しいコンパイラであり、コミュニティから早期フィードバックを得るためにオープンソース化したものです。これはビルド時のみに実行されるツールであり、あなたの React アプリを自動的に最適化します。プレーンな JavaScript で動作し、[React のルール](/reference/rules)を理解しているため、コードを書き直す必要はありません。
32-
33-
コンパイラには、コンパイラの分析結果をエディタ内でその場で表示できる [ESLint プラグイン](#installing-eslint-plugin-react-compiler) も含まれています。**すべての開発者に、このリンタを直ちに有効化することを強くお勧めします**。このリンタはコンパイラがインストールされていなくとも動作するため、アプリでコンパイラを試用する準備ができていない場合でも利用できます。
18+
React Compiler は新しいコンパイラであり、現在リリース候補版です。コミュニティからフィードバックを得るためにオープンソース化したものです。現在、すべての方にコンパイラーを試した上でフィードバックを寄せていただくことを推奨しています。
3419

35-
このコンパイラは現在 `beta` としてリリースされており、React 17 以降のアプリやライブラリで試すことができます。ベータ版をインストールするには以下のようにします。
36-
=======
37-
React Compiler is a new compiler currently in RC, that we've open sourced to get feedback from the community. We now recommend everyone to try the compiler and provide feedback.
38-
39-
The latest RC release can be found with the `@rc` tag, and daily experimental releases with `@experimental`.
20+
最新版のリリース候補は `@rc` タグで、またデイリーの実験的リリースは `@experimental` タグで利用可能です。
4021
</Note>
4122

42-
React Compiler is a new compiler that we've open sourced to get feedback from the community. It is a build-time only tool that automatically optimizes your React app. It works with plain JavaScript, and understands the [Rules of React](/reference/rules), so you don't need to rewrite any code to use it.
23+
React Compiler は新しいコンパイラであり、コミュニティからフィードバックを得るためにオープンソース化したものです。これはビルド時のみに実行されるツールであり、あなたの React アプリを自動的に最適化します。プレーンな JavaScript で動作し、[React のルール](/reference/rules)を理解しているため、コードを書き直す必要はありません。
4324

44-
eslint-plugin-react-hooks also includes an [ESLint rule](#installing-eslint-plugin-react-compiler) that surfaces the analysis from the compiler right in your editor. **We strongly recommend everyone use the linter today.** The linter does not require that you have the compiler installed, so you can use it even if you are not ready to try out the compiler.
25+
eslint-plugin-react-hooks には、コンパイラの分析結果をエディタ内でその場で表示できる [ESLint ルール](#installing-eslint-plugin-react-compiler) も含まれています。**すべての開発者に、このリンタを直ちに有効化することを強くお勧めします**。このリンタはコンパイラがインストールされていなくとも動作するため、アプリでコンパイラを試用する準備ができていない場合でも利用できます。
4526

46-
The compiler is currently released as `rc`, and is available to try out on React 17+ apps and libraries. To install the RC:
47-
>>>>>>> 3ee3a60a1bcc687c0b87039a3a6582e3b1d6887c
27+
このコンパイラは現在 `rc` としてリリースされており、React 17 以降のアプリやライブラリで試すことができます。リリース候補版をインストールするには以下のようにします。
4828

4929
<TerminalBlock>
5030
{`npm install -D babel-plugin-react-compiler@rc eslint-plugin-react-hooks@^6.0.0-rc.1`}
@@ -132,65 +112,23 @@ function TableContainer({ items }) {
132112

133113
### コンパイラを試すべきか {/*should-i-try-out-the-compiler*/}
134114

135-
<<<<<<< HEAD
136-
コンパイラはまだベータ版であり、多くの粗削りな部分があります。Meta のような企業で本番環境で使用されてはいますが、アプリにコンパイラを本番導入すべきかどうかは、コードベースの健全性と [React のルール](/reference/rules)にどれだけ従っているかに依存します。
137-
=======
138-
The compiler is now in RC and has been tested extensively in production. While it has been used in production at companies like Meta, rolling out the compiler to production for your app will depend on the health of your codebase and how well you've followed the [Rules of React](/reference/rules).
139-
>>>>>>> 3ee3a60a1bcc687c0b87039a3a6582e3b1d6887c
115+
コンパイラは現在リリース候補 (RC) であり、本番環境で広範にテストされています。Meta のような企業で本番環境で使用されてはいますが、アプリにコンパイラを本番導入すべきかどうかは、コードベースの健全性と [React のルール](/reference/rules)にどれだけ従っているかに依存します。
140116

141117
**今すぐコンパイラを使用する必要はありません。安定版リリースを待ってから採用しても構いません**。ただし、アプリで小規模な実験として試してみて、[フィードバック](#reporting-issues)を提供していただれば、コンパイラの改善に役立ちます。
142118

143119
## スタートガイド {/*getting-started*/}
144120

145121
以下のドキュメントに加えて、コンパイラに関する追加情報やディスカッションについて [React Compiler Working Group](https://github.com/reactwg/react-compiler) を確認することをお勧めします。
146122

147-
<<<<<<< HEAD
148-
### eslint-plugin-react-compiler のインストール {/*installing-eslint-plugin-react-compiler*/}
149-
150-
React Compiler は ESLint プラグインも提供しています。eslint プラグインはコンパイラとは**独立して**使用できるため、コンパイラを使用しなくても ESLint プラグインだけを使用できます。
151-
=======
152-
### Installing eslint-plugin-react-hooks {/*installing-eslint-plugin-react-compiler*/}
123+
### eslint-plugin-react-hooks のインストール {/*installing-eslint-plugin-react-compiler*/}
153124

154-
React Compiler also powers an ESLint plugin. You can try it out by installing eslint-plugin-react-hooks@^6.0.0-rc.1.
155-
>>>>>>> 3ee3a60a1bcc687c0b87039a3a6582e3b1d6887c
125+
React Compiler は ESLint プラグインも提供しています。eslint-plugin-react-hooks@^6.0.0-rc.1 をインストールすることで試用可能です。
156126

157127
<TerminalBlock>
158128
{`npm install -D eslint-plugin-react-hooks@^6.0.0-rc.1`}
159129
</TerminalBlock>
160130

161-
<<<<<<< HEAD
162-
次に、ESLint の設定に以下を追加します。
163-
164-
```js
165-
import reactCompiler from 'eslint-plugin-react-compiler'
166-
167-
export default [
168-
{
169-
plugins: {
170-
'react-compiler': reactCompiler,
171-
},
172-
rules: {
173-
'react-compiler/react-compiler': 'error',
174-
},
175-
},
176-
]
177-
```
178-
179-
あるいは、非推奨の eslintrc 形式の設定ファイルの場合、以下のようにします。
180-
181-
```js
182-
module.exports = {
183-
plugins: [
184-
'eslint-plugin-react-compiler',
185-
],
186-
rules: {
187-
'react-compiler/react-compiler': 'error',
188-
},
189-
}
190-
```
191-
=======
192-
See our [editor setup](/learn/editor-setup#linting) guide for more details.
193-
>>>>>>> 3ee3a60a1bcc687c0b87039a3a6582e3b1d6887c
131+
詳細については[エディタのセットアップ](/learn/editor-setup#linting)を参照してください。
194132

195133
ESLint プラグインは、エディタ内で React のルールに関する違反を表示します。これが表示される場合、そのコンポーネントやフックの最適化をコンパイラがスキップしたということを意味します。これ自体は全く問題なく、コンパイラは他のコンポーネントの最適化を続けることができます。
196134

src/content/learn/removing-effect-dependencies.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1241,11 +1241,7 @@ export default function Timer() {
12411241
12421242
</Sandpack>
12431243
1244-
<<<<<<< HEAD
12451244
エフェクトの中で `count` を読み取る代わりに、`c => c + 1` という指示(「この数値をインクリメントせよ」)を React に渡します。React は次のレンダー時にそれを適用します。エフェクトの中で `count` の値を読み取る必要がなくなったので、エフェクトの依存配列を空 (`[]`) に保つことができます。これにより、エフェクトが毎秒インターバルを再作成するのを防ぐことができます。
1246-
=======
1247-
Instead of reading `count` inside the Effect, you pass a `c => c + 1` instruction ("increment this number!") to React. React will apply it on the next render. And since you don't need to read the value of `count` inside your Effect anymore, you can keep your Effect's dependencies empty (`[]`). This prevents your Effect from re-creating the interval on every tick.
1248-
>>>>>>> 3ee3a60a1bcc687c0b87039a3a6582e3b1d6887c
12491245
12501246
</Solution>
12511247

0 commit comments

Comments
 (0)