You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/reference/rsc/directives.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,11 @@ Directives are for use in [React Server Components](/reference/rsc/server-compon
10
10
11
11
<Intro>
12
12
13
+
<<<<<<< HEAD
13
14
Direktifler [React Sunucu Bileşenleri ile uyumlu paketleyiciler](/learn/start-a-new-react-project#bleeding-edge-react-frameworks) için talimatlar sağlar.
15
+
=======
16
+
Directives provide instructions to [bundlers compatible with React Server Components](/learn/start-a-new-react-project#full-stack-frameworks).
Copy file name to clipboardExpand all lines: src/content/reference/rsc/server-components.md
+17-4Lines changed: 17 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,11 @@ title: Sunucu Bileşenleri
4
4
5
5
<RSC>
6
6
7
+
<<<<<<< HEAD
7
8
Sunucu Bileşenleri aşağıdakilerde kullanım içindir [React Sunucu Bileşenleri](/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
+
>>>>>>> c0c955ed1d1c4fe3bf3e18c06a8d121902a01619
8
12
9
13
</RSC>
10
14
@@ -22,7 +26,11 @@ Bu ayrı ortam, React Sunucu Bileşenlerinde "sunucu" olarak adlandırılır. Su
22
26
23
27
#### Sunucu Bileşenleri için nasıl destek oluşturulur? {/*how-do-i-build-support-for-server-components*/}
24
28
29
+
<<<<<<< HEAD
25
30
React 19'daki React Sunucu Bileşenleri kararlı ve alt sürümler arasında kırılmayacak olsa da, bir React Sunucu Bileşenleri paketleyicisini veya framework'ünü uygulamak için kullanılan temel API'ler semver'ı takip etmez ve React 19.x'teki alt sürümler arasında kırılabilir.
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
+
>>>>>>> c0c955ed1d1c4fe3bf3e18c06a8d121902a01619
26
34
27
35
React Sunucu Bileşenleri'ni bir paketleyici veya framework olarak desteklemek için, belirli bir React sürümüne sabitlemenizi veya Canary sürümünü kullanmanızı öneririz. Gelecekte, React Sunucu Bileşenleri'ni uygulamak için kullanılan API'leri stabilize etmek amacıyla paketleyiciler ve framework'lerle çalışmaya devam edeceğiz.
28
36
@@ -45,7 +53,7 @@ function Page({page}) {
45
53
setContent(data.content);
46
54
});
47
55
}, [page]);
48
-
56
+
49
57
return<div>{sanitizeHtml(marked(content))}</div>;
50
58
}
51
59
```
@@ -69,7 +77,7 @@ import sanitizeHtml from 'sanitize-html'; // Paket içinde dahil edilmemiş
69
77
asyncfunctionPage({page}) {
70
78
// NOT: Render sırasında, uygulama build edilirken yüklenir.
71
79
constcontent=awaitfile.readFile(`${page}.md`);
72
-
80
+
73
81
return<div>{sanitizeHtml(marked(content))}</div>;
74
82
}
75
83
```
@@ -113,7 +121,7 @@ function Note({id}) {
113
121
setNote(data.note);
114
122
});
115
123
}, [id]);
116
-
124
+
117
125
return (
118
126
<div>
119
127
<Author id={note.authorId} />
@@ -253,7 +261,7 @@ Bu, önce `Notes`'u bir Sunucu Bileşeni olarak render edip, ardından paketleyi
253
261
<p>bu ikinci nottur</p>
254
262
</Expandable>
255
263
<!--...-->
256
-
</div>
264
+
</div>
257
265
</body>
258
266
```
259
267
@@ -270,8 +278,13 @@ import db from './database';
270
278
asyncfunctionPage({id}) {
271
279
// Sunucu Bileşenini askıya alır.
272
280
constnote=awaitdb.notes.get(id);
281
+
<<<<<<<HEAD
273
282
274
283
// NOT: beklenmemiş, burada başlayacak ve istemcide bekleyecek.
284
+
=======
285
+
286
+
// NOTE: not awaited, will start here and await on the client.
Copy file name to clipboardExpand all lines: src/content/reference/rsc/use-client.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,11 @@ export default function RichTextEditor({ timestamp, text }) {
41
41
}
42
42
```
43
43
44
+
<<<<<<< HEAD
44
45
Bir Sunucu Bileşeninden `'use client'` ile işaretlenmiş bir dosya içe aktarıldığında, [uyumlu paketleyiciler](/learn/start-a-new-react-project#bleeding-edge-react-frameworks) modül içe aktarımını sunucu tarafından çalıştırılan ve istemci tarafından çalıştırılan kod arasında bir sınır olarak değerlendirecektir.
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
+
>>>>>>> c0c955ed1d1c4fe3bf3e18c06a8d121902a01619
45
49
46
50
`RichTextEditor` bağımlılıkları olarak, `formatDate` ve `Button` da modüllerinin bir `'use client'` yönergesi içerip içermediğine bakılmaksızın istemcide değerlendirilecektir. Tek bir modülün sunucu kodundan içe aktarıldığında sunucuda, istemci kodundan içe aktarıldığında ise istemcide değerlendirilebileceğini unutmayın.
0 commit comments