Skip to content

Commit f9a6835

Browse files
merging all conflicts
2 parents de86963 + 84a5696 commit f9a6835

File tree

8 files changed

+31
-13
lines changed

8 files changed

+31
-13
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"@radix-ui/react-context-menu": "^2.1.5",
3333
"body-scroll-lock": "^3.1.3",
3434
"classnames": "^2.2.6",
35-
"date-fns": "^2.16.1",
3635
"debounce": "^1.2.1",
3736
"github-slugger": "^1.3.0",
3837
"next": "15.1.0",

src/content/learn/scaling-up-with-reducer-and-context.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,11 @@ ul, li { margin: 0; padding: 0; }
685685
</TasksContext>
686686
```
687687

688+
<<<<<<< HEAD
688689
タスクのリストを必要とするコンポーネントは、代わりに `TaskContext` から読み込むことができます。
690+
=======
691+
Instead, any component that needs the task list can read it from the `TasksContext`:
692+
>>>>>>> 84a56968d92b9a9e9bbac1ca13011e159e815dc1
689693
690694
```js {2}
691695
export default function TaskList() {

src/content/reference/react-dom/client/createRoot.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ React は `root` に `<App />` を表示し、その内部の DOM の管理を
9090
9191
* 同じルートに対して `render` を複数回呼び出すと、React は最新の JSX を反映するために必要なだけの DOM の更新を行います。React は、渡された JSX を以前にレンダーしたツリーと[「マッチング」](/learn/preserving-and-resetting-state)して、DOM のどの部分が再利用でき、どの部分を再作成する必要があるのかを決定します。同じルートに対して複数回 `render` を呼び出すことは、ルートコンポーネントで [`set` 関数](/reference/react/useState#setstate)を呼び出すことに似ており、React は不必要な DOM 更新を回避します。
9292
93-
* Although rendering is synchronous once it starts, `root.render(...)` is not. This means code after `root.render()` may run before any effects (`useLayoutEffect`, `useEffect`) of that specific render are fired. This is usually fine and rarely needs adjustment. In rare cases where effect timing matters, you can wrap `root.render(...)` in [`flushSync`](https://react.dev/reference/react-dom/client/flushSync) to ensure the initial render runs fully synchronously.
93+
* Although rendering is synchronous once it starts, `root.render(...)` is not. This means code after `root.render()` may run before any effects (`useLayoutEffect`, `useEffect`) of that specific render are fired. This is usually fine and rarely needs adjustment. In rare cases where effect timing matters, you can wrap `root.render(...)` in [`flushSync`](https://react.dev/reference/react-dom/flushSync) to ensure the initial render runs fully synchronously.
9494
9595
```js
9696
const root = createRoot(document.getElementById('root'));

src/content/reference/react/forwardRef.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ title: forwardRef
66

77
React 19 では、`forwardRef` は不要となりました。代わりに props として `ref` を渡すようにしてください。
88

9+
<<<<<<< HEAD
910
`forwardRef` は将来のリリースでは非推奨化される予定です。詳しくは[こちら](/blog/2024/04/25/react-19#ref-as-a-prop)を参照してください。
11+
=======
12+
`forwardRef` will be deprecated in a future release. Learn more [here](/blog/2024/04/25/react-19#ref-as-a-prop).
13+
>>>>>>> 84a56968d92b9a9e9bbac1ca13011e159e815dc1
1014
1115
</Deprecated>
1216

src/content/reference/rsc/directives.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ title: "ディレクティブ"
1010

1111
<Intro>
1212

13+
<<<<<<< HEAD
1314
ディレクティブによって、[React Server Components 互換バンドラ](/learn/start-a-new-react-project#bleeding-edge-react-frameworks)に指示を与えます。
15+
=======
16+
Directives provide instructions to [bundlers compatible with React Server Components](/learn/start-a-new-react-project#full-stack-frameworks).
17+
>>>>>>> 84a56968d92b9a9e9bbac1ca13011e159e815dc1
1418
1519
</Intro>
1620

src/content/reference/rsc/server-components.md

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,11 @@ title: サーバコンポーネント
44

55
<RSC>
66

7+
<<<<<<< HEAD
78
サーバコンポーネントは [React Server Components](/learn/start-a-new-react-project#bleeding-edge-react-frameworks) 用の機能です。
9+
=======
10+
Server Components are for use in [React Server Components](/learn/start-a-new-react-project#full-stack-frameworks).
11+
>>>>>>> 84a56968d92b9a9e9bbac1ca13011e159e815dc1
812
913
</RSC>
1014

@@ -22,7 +26,11 @@ React Server Components の "server" とはこの別の環境を指していま
2226

2327
#### サーバコンポーネントのサポートを追加する方法 {/*how-do-i-build-support-for-server-components*/}
2428

29+
<<<<<<< HEAD
2530
React 19 の React Server Components は安定しており、マイナーバージョン間での破壊的変更はありませんが、サーバコンポーネントのバンドラやフレームワークを実装するために使用される基盤となる API は semver に従いません。React 19.x のマイナーバージョン間で変更が生じる可能性があります。
31+
=======
32+
While React Server Components in React 19 are stable and will not break between minor versions, the underlying APIs used to implement a React Server Components bundler or framework do not follow semver and may break between minors in React 19.x.
33+
>>>>>>> 84a56968d92b9a9e9bbac1ca13011e159e815dc1
2634
2735
React Server Components をバンドラやフレームワークでサポートする場合は、特定の React バージョンに固定するか、Canary リリースを使用することをお勧めします。React Server Components を実装するために使用される API を安定化させるため、今後もバンドラやフレームワークと連携を続けていきます。
2836

@@ -45,7 +53,7 @@ function Page({page}) {
4553
setContent(data.content);
4654
});
4755
}, [page]);
48-
56+
4957
return <div>{sanitizeHtml(marked(content))}</div>;
5058
}
5159
```
@@ -69,7 +77,7 @@ import sanitizeHtml from 'sanitize-html'; // Not included in bundle
6977
async function Page({page}) {
7078
// NOTE: loads *during* render, when the app is built.
7179
const content = await file.readFile(`${page}.md`);
72-
80+
7381
return <div>{sanitizeHtml(marked(content))}</div>;
7482
}
7583
```
@@ -113,7 +121,7 @@ function Note({id}) {
113121
setNote(data.note);
114122
});
115123
}, [id]);
116-
124+
117125
return (
118126
<div>
119127
<Author id={note.authorId} />
@@ -253,7 +261,7 @@ export default function Expandable({children}) {
253261
<p>this is the second note</p>
254262
</Expandable>
255263
<!--...-->
256-
</div>
264+
</div>
257265
</body>
258266
```
259267

@@ -270,8 +278,8 @@ import db from './database';
270278
async function Page({id}) {
271279
// Will suspend the Server Component.
272280
const note = await db.notes.get(id);
273-
274-
// NOTE: not awaited, will start here and await on the client.
281+
282+
// NOTE: not awaited, will start here and await on the client.
275283
const commentsPromise = db.comments.get(note.id);
276284
return (
277285
<div>

src/content/reference/rsc/use-client.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ export default function RichTextEditor({ timestamp, text }) {
4141
}
4242
```
4343

44+
<<<<<<< HEAD
4445
`'use client'` でマークされているファイルがサーバコンポーネントからインポートされた場合、[互換性のあるバンドラ](/learn/start-a-new-react-project#bleeding-edge-react-frameworks)は当該モジュールのインポートを、サーバで実行されるコードとクライアントで実行されるコードの境界として扱います。
46+
=======
47+
When a file marked with `'use client'` is imported from a Server Component, [compatible bundlers](/learn/start-a-new-react-project#full-stack-frameworks) will treat the module import as a boundary between server-run and client-run code.
48+
>>>>>>> 84a56968d92b9a9e9bbac1ca13011e159e815dc1
4549
4650
上記では `formatDate``Button``RichTextEditor` が依存するモジュールですので、これらのモジュール自体に `'use client'` ディレクティブが含まれているかどうかに関わらず、これらもクライアントで評価されます。ある単一のモジュールが、サーバコードからインポートされた場合はサーバで、クライアントコードからインポートされた場合はクライアントで評価される場合があることに注意してください。
4751

yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2799,11 +2799,6 @@ data-view-byte-offset@^1.0.0:
27992799
es-errors "^1.3.0"
28002800
is-data-view "^1.0.1"
28012801

2802-
date-fns@^2.16.1:
2803-
version "2.28.0"
2804-
resolved "https://registry.npmjs.org/date-fns/-/date-fns-2.28.0.tgz"
2805-
integrity sha512-8d35hViGYx/QH0icHYCeLmsLmMUheMmTyV9Fcm6gvNwdw31yXXH+O85sOBJ+OLnLQMKZowvpKb6FgMIQjcpvQw==
2806-
28072802
debounce@^1.2.1:
28082803
version "1.2.1"
28092804
resolved "https://registry.npmjs.org/debounce/-/debounce-1.2.1.tgz"

0 commit comments

Comments
 (0)