Skip to content

Commit 57b2117

Browse files
authored
Merge pull request #536 from ctnkaan/main
translate `unmountComponentAtNode`
2 parents 5ba09bc + db07519 commit 57b2117

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

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

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ title: unmountComponentAtNode
44

55
<Deprecated>
66

7-
This API will be removed in a future major version of React.
7+
Bu API, React'ın gelecekteki majör sürümlerinden birinde kaldırılacaktır.
88

9-
In React 18, `unmountComponentAtNode` was replaced by [`root.unmount()`](/reference/react-dom/client/createRoot#root-unmount).
9+
`unmountComponentAtNode` React 18 de [`root.unmount()`](/reference/react-dom/client/createRoot#root-unmount) ile değiştirildi.
1010

1111
</Deprecated>
1212

1313
<Intro>
1414

15-
`unmountComponentAtNode` removes a mounted React component from the DOM.
15+
`unmountComponentAtNode` DOM'dan monte edilmiş bir React bileşenini kaldırır.
1616

1717
```js
1818
unmountComponentAtNode(domNode)
@@ -24,11 +24,11 @@ unmountComponentAtNode(domNode)
2424

2525
---
2626

27-
## Reference {/*reference*/}
27+
## Başvuru Dökümanı {/*reference*/}
2828

2929
### `unmountComponentAtNode(domNode)` {/*unmountcomponentatnode*/}
3030

31-
Call `unmountComponentAtNode` to remove a mounted React component from the DOM and clean up its event handlers and state.
31+
`unmountComponentAtNode` fonksiyonunu kullanarak, monte edilmiş bir React bileşenini DOM'dan kaldırabilir ve olay yöneticilerini ve state'i temizleyebilirsiniz.
3232

3333
```js
3434
import { unmountComponentAtNode } from 'react-dom';
@@ -39,21 +39,21 @@ render(<App />, domNode);
3939
unmountComponentAtNode(domNode);
4040
```
4141

42-
[See more examples below.](#usage)
42+
[Aşağıda daha fazla örnek görebilirsiniz.](#usage)
4343

44-
#### Parameters {/*parameters*/}
44+
#### Parametreler {/*parameters*/}
4545

46-
* `domNode`: A [DOM element.](https://developer.mozilla.org/en-US/docs/Web/API/Element) React will remove a mounted React component from this element.
46+
* `domNode`: Bir [DOM elemanı.](https://developer.mozilla.org/en-US/docs/Web/API/Element) React, monte edilmiş bir React bileşenini bu elemandan kaldıracaktır.
4747

48-
#### Returns {/*returns*/}
48+
#### Geri Dönüş Değeri {/*returns*/}
4949

50-
`unmountComponentAtNode` returns `true` if a component was unmounted and `false` otherwise.
50+
`unmountComponentAtNode`, bir bileşen kaldırıldıysa `true` döner, aksi takdirde `false` döner.
5151

5252
---
5353

54-
## Usage {/*usage*/}
54+
## Kullanım {/*usage*/}
5555

56-
Call `unmountComponentAtNode` to remove a <CodeStep step={1}>mounted React component</CodeStep> from a <CodeStep step={2}>browser DOM node</CodeStep> and clean up its event handlers and state.
56+
<CodeStep step={1}>Monte edilmiş bir React bileşenini</CodeStep> bir <CodeStep step={2}>tarayıcı DOM öğesinden</CodeStep> kaldırmak ve olay yöneticilerini ile state'i temizlemek için `unmountComponentAtNode` fonksiyonunu çağırın.
5757

5858
```js [[1, 5, "<App />"], [2, 5, "rootNode"], [2, 8, "rootNode"]]
5959
import { render, unmountComponentAtNode } from 'react-dom';
@@ -66,12 +66,11 @@ render(<App />, rootNode);
6666
unmountComponentAtNode(rootNode);
6767
```
6868

69+
### DOM elemanından bir React uygulaması kaldırmak {/*removing-a-react-app-from-a-dom-element*/}
6970

70-
### Removing a React app from a DOM element {/*removing-a-react-app-from-a-dom-element*/}
71+
Bazen mevcut bir sayfaya veya tamamen React ile yazılmamış bir sayfaya React'i "serpmek" isteyebilirsiniz. Bunun gibi durumlarda, React uygulamalarını, bütün UI, state ve listener'ları render oldukları DOM öğesinden kaldırarak, React uygulamanızı "durdurmak" isteyebilirsiniz.
7172

72-
Occasionally, you may want to "sprinkle" React on an existing page, or a page that is not fully written in React. In those cases, you may need to "stop" the React app, by removing all of the UI, state, and listeners from the DOM node it was rendered to.
73-
74-
In this example, clicking "Render React App" will render a React app. Click "Unmount React App" to destroy it:
73+
Bu örnekte "Render React App" butonuna basmak React uygulamasını render edecektir. Yok etmek için "Unmout React App" düğmesine tıklayabilirsiniz.
7574

7675
<Sandpack>
7776

0 commit comments

Comments
 (0)