Skip to content

Commit 7e39c1b

Browse files
committed
feat: add Turkish translation for render
1 parent 8f415e4 commit 7e39c1b

File tree

1 file changed

+42
-33
lines changed

1 file changed

+42
-33
lines changed

src/content/reference/react-dom/render.md

Lines changed: 42 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ title: render
44

55
<Deprecated>
66

7-
This API will be removed in a future major version of React.
7+
Bu API, React'in gelecekteki bir ana sürümünde kaldırılacaktır.
88

9-
In React 18, `render` was replaced by [`createRoot`.](/reference/react-dom/client/createRoot) Using `render` in React 18 will warn that your app will behave as if it’s running React 17. Learn more [here.](/blog/2022/03/08/react-18-upgrade-guide#updates-to-client-rendering-apis)
9+
React 18'de `render` [`createRoot`.](/reference/react-dom/client/createRoot) ile değiştirildi. React 18'de `render` kullanmak, uygulamanızın React 17 gibi davranacağı uyarısını verecektir. Daha fazla bilgi için [buraya](/blog/2022/03/08/react-18-upgrade-guide#updates-to-client-rendering-apis) bakın.
1010

1111
</Deprecated>
1212

1313
<Intro>
1414

15-
`render` renders a piece of [JSX](/learn/writing-markup-with-jsx) ("React node") into a browser DOM node.
15+
`render` bir [JSX](/learn/writing-markup-with-jsx) ("React düğümü") parçasını tarayıcı DOM düğümüne işler.
1616

1717
```js
1818
render(reactNode, domNode, callback?)
@@ -24,11 +24,11 @@ render(reactNode, domNode, callback?)
2424
2525
---
2626
27-
## Reference {/*reference*/}
27+
## Başvuru dokümanı {/*reference*/}
2828
2929
### `render(reactNode, domNode, callback?)` {/*render*/}
3030
31-
Call `render` to display a React component inside a browser DOM element.
31+
Bir React bileşenini tarayıcı DOM düğümüne işlemek için `render`'ı çağırın.
3232
3333
```js
3434
import { render } from 'react-dom';
@@ -39,38 +39,43 @@ render(<App />, domNode);
3939
4040
React will display `<App />` in the `domNode`, and take over managing the DOM inside it.
4141
42-
An app fully built with React will usually only have one `render` call with its root component. A page that uses "sprinkles" of React for parts of the page may have as many `render` calls as needed.
42+
React `<App />`'i `domNode` içinde görüntüleyecek ve içindeki DOM'u yönetmeye başlayacaktır.
4343
44-
[See more examples below.](#usage)
44+
Tamamen React ile oluşturulmuş bir uygulama genellikle kök(root) bileşeni ile yalnızca bir `render` çağrısına sahip olacaktır. Sayfanın bazı bölümleri için React "sprinkles" kullanan bir sayfada, gerektiği kadar çok `render` çağrısına sahip olabilir.
4545
46-
#### Parameters {/*parameters*/}
46+
[Daha fazla örnek için aşağıya bakın.](#usage)
47+
48+
#### Parametreler {/*parameters*/}
4749
4850
* `reactNode`: A *React node* that you want to display. This will usually be a piece of JSX like `<App />`, but you can also pass a React element constructed with [`createElement()`](/reference/react/createElement), a string, a number, `null`, or `undefined`.
4951
50-
* `domNode`: A [DOM element.](https://developer.mozilla.org/en-US/docs/Web/API/Element) React will display the `reactNode` you pass inside this DOM element. From this moment, React will manage the DOM inside the `domNode` and update it when your React tree changes.
52+
* `reactNode`: Görüntülemek istediğiniz *React düğümü*. Bu genellikle `<App />` gibi bir JSX parçası olacaktır, ancak [`createElement()`](/reference/react/createElement) ile oluşturulmuş bir React elemanına, bir dize, bir sayı, `null` veya `undefined` da geçirebilirsiniz.
5153
52-
* **optional** `callback`: A function. If passed, React will call it after your component is placed into the DOM.
54+
* `domNode`: [DOM elemanı.](https://developer.mozilla.org/en-US/docs/Web/API/Element) React, geçtiğiniz `reactNode`'u bu DOM elemanının içinde görüntüleyecektir. Bu andan itibaren, React `domNode` içindeki DOM'u yönetecek ve React ağacınız değiştiğinde güncelleyecektir.
5355
56+
* **optional** `callback`: Fonksiyon. Geçilirse, React bileşeniniz DOM'a yerleştirildikten sonra onu çağıracaktır.
5457
55-
#### Returns {/*returns*/}
58+
#### Dönüş değerleri {/*returns*/}
5659
5760
`render` usually returns `null`. However, if the `reactNode` you pass is a *class component*, then it will return an instance of that component.
5861
59-
#### Caveats {/*caveats*/}
62+
`render` genellikle `null` döndürür. Ancak, geçtiğiniz `reactNode` bir *sınıf bileşeni* ise, o zaman bileşenin bir örneğini döndürecektir.
63+
64+
#### Dikkat edilmesi gerekenler {/*caveats*/}
6065
61-
* In React 18, `render` was replaced by [`createRoot`.](/reference/react-dom/client/createRoot) Please use `createRoot` for React 18 and beyond.
66+
* React 18'de `render` [`createRoot`.](/reference/react-dom/client/createRoot) ile değiştirildi. Lütfen React 18 ve sonrası için `createRoot` kullanın.
6267
63-
* The first time you call `render`, React will clear all the existing HTML content inside the `domNode` before rendering the React component into it. If your `domNode` contains HTML generated by React on the server or during the build, use [`hydrate()`](/reference/react-dom/hydrate) instead, which attaches the event handlers to the existing HTML.
68+
* İlk `render` çağrısında, React, React bileşenini render etmek için `domNode` içindeki tüm mevcut HTML içeriğini temizleyecektir. `domNode`'unuz, sunucu veya derleme sırasında React tarafından oluşturulan HTML içeriyorsa, bunun yerine var olan HTML'e olay işleyicilerini ekleyen [`hydrate()`](/reference/react-dom/hydrate) kullanın.
6469
65-
* If you call `render` on the same `domNode` more than once, React will update the DOM as necessary to reflect the latest JSX you passed. React will decide which parts of the DOM can be reused and which need to be recreated by ["matching it up"](/learn/preserving-and-resetting-state) with the previously rendered tree. Calling `render` on the same `domNode` again is similar to calling the [`set` function](/reference/react/useState#setstate) on the root component: React avoids unnecessary DOM updates.
70+
* Eğer aynı `domNode` üzerinde birden fazla `render` çağrısı yaparsanız, React, geçtiğiniz son JSX'i yansıtmak için gerektiğinde DOM'u güncelleyecektir. React, DOM'un hangi kısımlarının yeniden kullanılabileceğine ve hangilerinin önceki ağaçla(tree) ["eşleştirilerek"](/learn/preserving-and-resetting-state) yeniden oluşturulması gerektiğine karar verecektir. Aynı `domNode` üzerinde `render` çağrısı yapmak, kök bileşen (root component) üzerinde [`set` fonksiyonunu](/reference/react/useState#setstate) çağırmaya benzer: React gereksiz DOM güncellemelerinden kaçınır.
6671
67-
* If your app is fully built with React, you'll likely have only one `render` call in your app. (If you use a framework, it might do this call for you.) When you want to render a piece of JSX in a different part of the DOM tree that isn't a child of your component (for example, a modal or a tooltip), use [`createPortal`](/reference/react-dom/createPortal) instead of `render`.
72+
* Eğer uygulamanız tamamen React ile oluşturulmuşsa, uygulamanızda muhtemelen yalnızca bir `render` çağrısı olacaktır. (Bir çatı(framework) kullanıyorsanız, bunu sizin için yapabilir.) JSX'in bir parçasını bileşeninizin bir alt öğesi olmayan DOM ağacının farklı bir yerinde görüntülemek istediğinizde (örneğin, bir modal veya bir tooltip), `render` yerine [`createPortal`](/reference/react-dom/createPortal) kullanın.
6873
6974
---
7075
71-
## Usage {/*usage*/}
76+
## Kullanım {/*usage*/}
7277
73-
Call `render` to display a <CodeStep step={1}>React component</CodeStep> inside a <CodeStep step={2}>browser DOM node</CodeStep>.
78+
Bir <CodeStep step={1}>React bileşenini</CodeStep> bir <CodeStep step={2}>tarayıcı DOM düğümünde</CodeStep> görüntülemek için `render`'ı çağırın.
7479
7580
```js [[1, 4, "<App />"], [2, 4, "document.getElementById('root')"]]
7681
import { render } from 'react-dom';
@@ -79,10 +84,12 @@ import App from './App.js';
7984
render(<App />, document.getElementById('root'));
8085
```
8186
82-
### Rendering the root component {/*rendering-the-root-component*/}
87+
### Kök bileşeni render etmek {/*rendering-the-root-component*/}
8388
8489
In apps fully built with React, **you will usually only do this once at startup**--to render the "root" component.
8590
91+
Tamamen React ile oluşturulmuş uygulamalarda, **genellikle bunu yalnızca başlangıçta bir kez yapacaksınız** - "kök" bileşenini render etmek için.
92+
8693
<Sandpack>
8794
8895
```js index.js active
@@ -95,26 +102,26 @@ render(<App />, document.getElementById('root'));
95102
96103
```js App.js
97104
export default function App() {
98-
return <h1>Hello, world!</h1>;
105+
return <h1>Merhaba Dünya!</h1>;
99106
}
100107
```
101108
102109
</Sandpack>
103110
104-
Usually you shouldn't need to call `render` again or to call it in more places. From this point on, React will be managing the DOM of your application. To update the UI, your components will [use state.](/reference/react/useState)
111+
Genellikle `render`'ı tekrar çağırmanıza veya daha fazla yere çağırmanıza gerek yoktur. Bu noktadan itibaren, React uygulamanızın DOM'unu yönetmeye başlayacaktır. Kullanıcı arayüzünü güncellemek için bileşenleriniz [state](/reference/react/useState) kullanacak.
105112
106113
---
107114
108-
### Rendering multiple roots {/*rendering-multiple-roots*/}
115+
### Birden çok kök oluşturma {/*rendering-multiple-roots*/}
109116
110-
If your page [isn't fully built with React](/learn/add-react-to-an-existing-project#using-react-for-a-part-of-your-existing-page), call `render` for each top-level piece of UI managed by React.
117+
Eğer sayfanız [tamamen React ile oluşturulmamışsa](/learn/add-react-to-an-existing-project#using-react-for-a-part-of-your-existing-page), React tarafından yönetilen her bir üst düzey UI parçası için `render`'ı çağırın.
111118
112119
<Sandpack>
113120
114121
```html public/index.html
115122
<nav id="navigation"></nav>
116123
<main>
117-
<p>This paragraph is not rendered by React (open index.html to verify).</p>
124+
<p>Bu paragraf React tarafından render edilmiyor (doğrulamak için index.html'i açın).</p>
118125
<section id="comments"></section>
119126
</main>
120127
```
@@ -139,8 +146,8 @@ render(
139146
export function Navigation() {
140147
return (
141148
<ul>
142-
<NavLink href="/">Home</NavLink>
143-
<NavLink href="/about">About</NavLink>
149+
<NavLink href="/">Anasayfa</NavLink>
150+
<NavLink href="/about">Hakkında</NavLink>
144151
</ul>
145152
);
146153
}
@@ -157,8 +164,8 @@ export function Comments() {
157164
return (
158165
<>
159166
<h2>Comments</h2>
160-
<Comment text="Hello!" author="Sophie" />
161-
<Comment text="How are you?" author="Sunil" />
167+
<Comment text="Merhaba!" author="Sophie" />
168+
<Comment text="Nasılsın?" author="Sunil" />
162169
</>
163170
);
164171
}
@@ -177,14 +184,16 @@ nav ul li { display: inline-block; margin-right: 20px; }
177184
178185
</Sandpack>
179186
180-
You can destroy the rendered trees with [`unmountComponentAtNode()`.](/reference/react-dom/unmountComponentAtNode)
187+
[`unmountComponentAtNode()`](/reference/react-dom/unmountComponentAtNode) ile render edilmiş ağaçları(trees) yok edebilirsiniz.
181188
182189
---
183190
184-
### Updating the rendered tree {/*updating-the-rendered-tree*/}
191+
### Render edilmiş ağaçları güncelleme {/*updating-the-rendered-tree*/}
185192
186193
You can call `render` more than once on the same DOM node. As long as the component tree structure matches up with what was previously rendered, React will [preserve the state.](/learn/preserving-and-resetting-state) Notice how you can type in the input, which means that the updates from repeated `render` calls every second are not destructive:
187194
195+
Aynı DOM düğümü üzerinde `render`'ı birden fazla kez çağırabilirsiniz. Bileşen ağacı yapısı önceki render edilmiş olanla eşleştiği sürece, React [durumu koruyacaktır.](/learn/preserving-and-resetting-state) Tekrarlanan `render` çağrılarından her saniye gelen güncellemelerin yıkıcı olmadığını gösteren girişe yazı yazabileceğinize dikkat edin:
196+
188197
<Sandpack>
189198

190199
```js index.js active
@@ -206,13 +215,13 @@ setInterval(() => {
206215
export default function App({counter}) {
207216
return (
208217
<>
209-
<h1>Hello, world! {counter}</h1>
210-
<input placeholder="Type something here" />
218+
<h1>Merhaba Dünya! {counter}</h1>
219+
<input placeholder="Buraya bir şey yazın" />
211220
</>
212221
);
213222
}
214223
```
215224

216225
</Sandpack>
217226

218-
It is uncommon to call `render` multiple times. Usually, you'll [update state](/reference/react/useState) inside your components instead.
227+
Bu şekilde birden fazla kez `render` çağırmak nadirdir. Genellikle, bunun yerine bileşenlerinizin içinde [state'i güncellersiniz.](/reference/react/useState)

0 commit comments

Comments
 (0)