Skip to content

Commit 921bad4

Browse files
authored
Merge pull request #431 from agmmnn/main
translate `<Profiler>` and `React DOM APIs`
2 parents e09a49b + bbdec67 commit 921bad4

File tree

2 files changed

+44
-44
lines changed

2 files changed

+44
-44
lines changed
Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
11
---
2-
title: React DOM APIs
2+
title: React DOM API'leri
33
---
44

55
<Intro>
66

7-
The `react-dom` package contains methods that are only supported for the web applications (which run in the browser DOM environment). They are not supported for React Native.
7+
`react-dom` paketi, sadece tarayıcı DOM ortamında çalışan web uygulamaları için desteklenen yöntemleri içerir. React Native için desteklenmezler.
88

99
</Intro>
1010

1111
---
1212

13-
## APIs {/*apis*/}
13+
## API'ler {/*apis*/}
1414

15-
These APIs can be imported from your components. They are rarely used:
15+
Bu API'ler bileşenlerinizden içe aktarılabilirler. Nadiren kullanılırlar:
1616

17-
* [`createPortal`](/reference/react-dom/createPortal) lets you render child components in a different part of the DOM tree.
18-
* [`flushSync`](/reference/react-dom/flushSync) lets you force React to flush a state update and update the DOM synchronously.
17+
* [`createPortal`](/reference/react-dom/createPortal) alt bileşenleri DOM ağacındaki farklı bir bölüme render etmenizi sağlar.
18+
* [`flushSync`](/reference/react-dom/flushSync) React'i bir state güncellemesini hemen uygulamaya zorlayarak senkronize şekilde DOM'u güncellemenizi sağlar.
1919

2020
---
2121

22-
## Entry points {/*entry-points*/}
22+
## Giriş noktaları {/*entry-points*/}
2323

24-
The `react-dom` package provides two additional entry points:
24+
`react-dom` paketi iki ek giriş noktası sağlar:
2525

26-
* [`react-dom/client`](/reference/react-dom/client) contains APIs to render React components on the client (in the browser).
27-
* [`react-dom/server`](/reference/react-dom/server) contains APIs to render React components on the server.
26+
* [`react-dom/client`](/reference/react-dom/client) React bileşenlerini istemcide (tarayıcıda) render etmek için API'ler içerir.
27+
* [`react-dom/server`](/reference/react-dom/server) React bileşenlerini sunucuda oluşturmak için API'ler içerir.
2828

2929
---
3030

31-
## Deprecated APIs {/*deprecated-apis*/}
31+
## Kullanımdan kaldırılmış API'ler {/*deprecated-apis*/}
3232

3333
<Deprecated>
3434

35-
These APIs will be removed in a future major version of React.
35+
Bu API'ler React'in gelecekteki bir ana sürümünde kaldırılacaktır.
3636

3737
</Deprecated>
3838

39-
* [`findDOMNode`](/reference/react-dom/findDOMNode) finds the closest DOM node corresponding to a class component instance.
40-
* [`hydrate`](/reference/react-dom/hydrate) mounts a tree into the DOM created from server HTML. Deprecated in favor of [`hydrateRoot`](/reference/react-dom/client/hydrateRoot).
41-
* [`render`](/reference/react-dom/render) mounts a tree into the DOM. Deprecated in favor of [`createRoot`](/reference/react-dom/client/createRoot).
42-
* [`unmountComponentAtNode`](/reference/react-dom/unmountComponentAtNode) unmounts a tree from the DOM. Deprecated in favor of [`root.unmount()`.](/reference/react-dom/client/createRoot#root-unmount)
39+
* [`findDOMNode`](/reference/react-dom/findDOMNode) bir sınıf bileşeni öğesine karşılık gelen en yakın DOM düğümünü bulur.
40+
* [`hydrate`](/reference/react-dom/hydrate) sunucu HTML'inden oluşturulan DOM'a bir ağaç bağlar. [`hydrateRoot`](/reference/react-dom/client/hydrateRoot) ile değiştirilmiştir.
41+
* [`render`](/reference/react-dom/render) bir ağacı DOM'a bağlar. [`createRoot`](/reference/react-dom/client/createRoot) ile değiştirilmiştir.
42+
* [`unmountComponentAtNode`](/reference/react-dom/unmountComponentAtNode) bir ağacı DOM'dan kaldırır. [`root.unmount()`](/reference/react-dom/client/createRoot#root-unmount) ile değiştirilmiştir.
4343

src/content/reference/react/Profiler.md

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ title: <Profiler>
44

55
<Intro>
66

7-
`<Profiler>` lets you measure rendering performance of a React tree programmatically.
7+
`<Profiler>` programatik olarak bir React ağacınının performansını ölçmenizi sağlar.
88

99
```js
1010
<Profiler id="App" onRender={onRender}>
@@ -18,55 +18,55 @@ title: <Profiler>
1818

1919
---
2020

21-
## Reference {/*reference*/}
21+
## Referans {/*reference*/}
2222

2323
### `<Profiler>` {/*profiler*/}
2424

25-
Wrap a component tree in a `<Profiler>` to measure its rendering performance.
25+
Bir bileşen ağacını `<Profiler>` ile sarmalayarak render performansını ölçebilirsiniz.
2626

2727
```js
2828
<Profiler id="App" onRender={onRender}>
2929
<App />
3030
</Profiler>
3131
```
3232

33-
#### Props {/*props*/}
33+
#### Prop'lar {/*props*/}
3434

35-
* `id`: A string identifying the part of the UI you are measuring.
36-
* `onRender`: An [`onRender` callback](#onrender-callback) that React calls it every time components within the profiled tree update. It receives information about what was rendered and how much time it took.
35+
* `id`: Kullanıcı arayüzünün ölçtüğünüz bölümünü tanımlayan bir string.
36+
* `onRender`: Profilleme yapılan ağaçtaki bileşenler her güncellendiğinde React [`onRender` callback](#onrender-callback)'ini çağırır. Hangi bileşenlerin yeniden render edildiği ve ne kadar sürede render edildiği bilgilerini alır.
3737

38-
#### Caveats {/*caveats*/}
38+
#### Uyarılar {/*caveats*/}
3939

40-
* Profiling adds some additional overhead, so **it is disabled in the production build by default.** To opt into production profiling, you need to enable a [special production build with profiling enabled.](https://fb.me/react-profiling)
40+
* Profilleme, ekstra bir yük getirdiği için **varsayılan olarak canlı ortamda devre dışı bırakılmıştır.** Canlı ortamda profilleme yapmak için [profilleme özelliklerinin etkin olduğu özel bir canlı ortam sürümünü etkinleştirmeniz gerekmektedir.](https://fb.me/react-profiling)
4141

4242
---
4343

44-
### `onRender` callback {/*onrender-callback*/}
44+
### `onRender` callback'i {/*onrender-callback*/}
4545

46-
React will call your `onRender` callback with information about what was rendered.
46+
React `onRender` callback`inizi neyin render edildiği bilgisi ile çağıracaktır.
4747

4848
```js
4949
function onRender(id, phase, actualDuration, baseDuration, startTime, commitTime) {
50-
// Aggregate or log render timings...
50+
// Render zamanlamalarını topla veya log'la...
5151
}
5252
```
5353

54-
#### Parameters {/*onrender-parameters*/}
54+
#### Parametreler {/*onrender-parameters*/}
5555

56-
* `id`: The string `id` prop of the `<Profiler>` tree that has just committed. This lets you identify which part of the tree was committed if you are using multiple profilers.
57-
* `phase`: `"mount"`, `"update"` or `"nested-update"`. This lets you know whether the tree has just been mounted for the first time or re-rendered due to a change in props, state, or hooks.
58-
* `actualDuration`: The number of milliseconds spent rendering the `<Profiler>` and its descendants for the current update. This indicates how well the subtree makes use of memoization (e.g. [`memo`](/reference/react/memo) and [`useMemo`](/reference/react/useMemo)). Ideally this value should decrease significantly after the initial mount as many of the descendants will only need to re-render if their specific props change.
59-
* `baseDuration`: The number of milliseconds estimating how much time it would take to re-render the entire `<Profiler>` subtree without any optimizations. It is calculated by summing up the most recent render durations of each component in the tree. This value estimates a worst-case cost of rendering (e.g. the initial mount or a tree with no memoization). Compare `actualDuration` against it to see if memoization is working.
60-
* `startTime`: A numeric timestamp for when React began rendering the current update.
61-
* `endTime`: A numeric timestamp for when React committed the current update. This value is shared between all profilers in a commit, enabling them to be grouped if desirable.
56+
* `id`: Yeni commit edilmiş `<Profiler>` ağacının `id` string prop'u. Bu, birden fazla profilleyici kullanıyorsanız ağacın hangi bölümünün commit edildiğini belirlemenizi sağlar.
57+
* `phase`: `"mount"`, `"update"` or `"nested-update"`. Bu, ağacın ilk kez mi yüklendiğini yoksa prop, state veya hook'lardaki bir değişiklik nedeniyle mi yeniden render edildiğini bilmenizi sağlar.
58+
* `actualDuration`: Mevcut güncelleme için `<Profiler>` ve onun alt öğelerini render etmek için harcanan milisaniye sayısı. Bu, alt ağacın memoizasyondan ne kadar iyi yararlandığını gösterir (örneğin [`memo`](/reference/react/memo) ve [`useMemo`](/reference/react/useMemo)). İdeal olarak, bu değer ilk yüklemeden sonra önemli ölçüde azalmalıdır, çünkü alt öğelerin birçoğu yalnızca belirli prop'ları değiştiğinde yeniden render edilmedir.
59+
* `baseDuration`: Herhangi bir optimizasyon olmadan tüm `<Profiler>` alt ağacını yeniden render etmenin ne kadar zaman alacağını tahmin eden milisaniye sayısı. Ağaçtaki her bileşenin en son render süreleri toplanarak hesaplanır. Bu değer, render işleminin en kötü senaryo maliyetini tahmin eder (örn. ilk yükleme işlemi veya memoizasyon olmayan bir ağaç). Memoizasyonun çalışıp çalışmadığını görmek için `actualDuration` ile karşılaştırın.
60+
* `startTime`: React'in mevcut güncellemeyi ne zaman render etmeye başladığını gösteren sayısal bir zaman damgası.
61+
* `endTime`: React'in geçerli güncellemeyi ne zaman commit ettiğini gösteren sayısal bir zaman damgası. Bu değer, istenirse gruplandırılabilmeleri için bir committeki tüm profilleyiciler arasında paylaşılır.
6262

6363
---
6464

65-
## Usage {/*usage*/}
65+
## Kullanım {/*usage*/}
6666

67-
### Measuring rendering performance programmatically {/*measuring-rendering-performance-programmatically*/}
67+
### Render performansının programatik olarak ölçülmesi {/*measuring-rendering-performance-programmatically*/}
6868

69-
Wrap the `<Profiler>` component around a React tree to measure its rendering performance.
69+
Render performansını ölçmek için `<Profiler>` bileşenini bir React ağacının etrafına sarın.
7070

7171
```js {2,4}
7272
<App>
@@ -77,25 +77,25 @@ Wrap the `<Profiler>` component around a React tree to measure its rendering per
7777
</App>
7878
```
7979

80-
It requires two props: an `id` (string) and an `onRender` callback (function) which React calls any time a component within the tree "commits" an update.
80+
`<Profiler>` iki prop alır: bir `id` (string) ve React'in ağaç içinde bir bileşen her güncelleme "commit" ettiğinde çağırdığı `onRender` callback'i (fonksiyon).
8181

8282
<Pitfall>
8383

84-
Profiling adds some additional overhead, so **it is disabled in the production build by default.** To opt into production profiling, you need to enable a [special production build with profiling enabled.](https://fb.me/react-profiling)
84+
Profilleme, ekstra bir yük getirdiği için **varsayılan olarak canlı ortamda devre dışı bırakılmıştır.** Canlı ortamda profilleme yapmak için [profilleme özelliklerinin etkin olduğu özel bir canlı ortam sürümünü etkinleştirmeniz gerekmektedir.](https://fb.me/react-profiling)
8585

8686
</Pitfall>
8787

8888
<Note>
8989

90-
`<Profiler>` lets you gather measurements programmatically. If you're looking for an interactive profiler, try the Profiler tab in [React Developer Tools](/learn/react-developer-tools). It exposes similar functionality as a browser extension.
90+
`<Profiler>`, ölçümleri programatik olarak toplamanızı sağlar. Etkileşimli bir profilleyici arıyorsanız, [React Developer Tools](/learn/react-developer-tools) içindeki Profiler sekmesini deneyin. Benzer işlevselliği bir tarayıcı uzantısı olarak sunar.
9191

9292
</Note>
9393

9494
---
9595

96-
### Measuring different parts of the application {/*measuring-different-parts-of-the-application*/}
96+
### Uygulamanın farklı bölümlerinin ölçülmesi {/*measuring-different-parts-of-the-application*/}
9797

98-
You can use multiple `<Profiler>` components to measure different parts of your application:
98+
Uygulamanızın farklı bölümlerini ölçmek için birden fazla `<Profiler>` bileşeni kullanabilirsiniz:
9999

100100
```js {5,7}
101101
<App>
@@ -108,7 +108,7 @@ You can use multiple `<Profiler>` components to measure different parts of your
108108
</App>
109109
```
110110

111-
You can also nest `<Profiler>` components:
111+
Ayrıca `<Profiler>` bileşenlerini iç içe geçirebilirsiniz:
112112

113113
```js {5,7,9,12}
114114
<App>
@@ -126,7 +126,7 @@ You can also nest `<Profiler>` components:
126126
</App>
127127
```
128128

129-
Although `<Profiler>` is a lightweight component, it should be used only when necessary. Each use adds some CPU and memory overhead to an application.
129+
`<Profiler>` bileşeni hafif bir bileşen olsa da, sadece gerektiği zaman kullanılmalıdır. Her kullanım uygulamaya CPU ve bellek yükü ekler.
130130

131131
---
132132

0 commit comments

Comments
 (0)