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
*`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`: Sebuah [elemen DOM.](https://developer.mozilla.org/en-US/docs/Web/API/Element) React akan menghapus komponen React yang terpasang dari elemen ini.
47
47
48
-
#### Returns {/*returns*/}
48
+
#### Kembalian {/*returns*/}
49
49
50
-
`unmountComponentAtNode`returns`true`if a component was unmounted and `false`otherwise.
50
+
`unmountComponentAtNode`mengembalikan`true`jika komponen tersebut telah berhasil dilepas dan `false`jika tidak.
51
51
52
52
---
53
53
54
-
## Usage {/*usage*/}
54
+
## Penggunaan {/*usage*/}
55
55
56
-
Call`unmountComponentAtNode`to remove a <CodeStepstep={1}>mounted React component</CodeStep> from a <CodeStepstep={2}>browser DOM node</CodeStep> and clean up its event handlers and state.
56
+
Panggil`unmountComponentAtNode`untuk menghapus <CodeStepstep={1}>komponen React yang sudah terpasang</CodeStep> dari <CodeStepstep={2}>simpul DOM peramban</CodeStep> dan bersihkan *event handler* beserta *state*-nya.
### Removing a React app from a DOM element {/*removing-a-react-app-from-a-dom-element*/}
70
+
### Menghapus aplikasi React dari elemen DOM {/*removing-a-react-app-from-a-dom-element*/}
71
71
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.
72
+
Terkadang, Anda mungkin ingin "menghiasi" dengan React halaman yang sudah ada, atau halaman yang tidak sepenuhnya ditulis dalam React. Dalam kasus tersebut, Anda mungkin perlu "menghentikan" aplikasi React, dengan menghapus semua UI, *state*, dan *listener* dari simpul DOM yang di-*render*.
73
73
74
-
In this example, clicking "Render React App" will render a React app. Click "Unmount React App" to destroy it:
74
+
Pada contoh ini, mengklik "*Render* Aplikasi React" akan me-*render* aplikasi React. Klik "Lepas Aplikasi React" untuk menghancurkannya:
75
75
76
76
<Sandpack>
77
77
@@ -80,8 +80,8 @@ In this example, clicking "Render React App" will render a React app. Click "Unm
0 commit comments