Skip to content

Commit 0608df4

Browse files
Merge pull request #70 from nafistiham/unmount-component-at-node
Unmount component at node
2 parents cf1a730 + 4cc5cc6 commit 0608df4

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

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

Lines changed: 15 additions & 15 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+
এই API টি React এর একটি আগাম ভার্সনে অপসারিত হবে।
88

9-
In React 18, `unmountComponentAtNode` was replaced by [`root.unmount()`](/reference/react-dom/client/createRoot#root-unmount).
9+
React 18, `unmountComponentAtNode` কে প্রতিস্থাপন করেছে [`root.unmount()`](/reference/react-dom/client/createRoot#root-unmount)
1010

1111
</Deprecated>
1212

1313
<Intro>
1414

15-
`unmountComponentAtNode` removes a mounted React component from the DOM.
15+
`unmountComponentAtNode` DOM থেকে একটি মাউন্ট করা React কম্পোনেন্ট অপসারণ করে।
1616

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

2525
---
2626

27-
## Reference {/*reference*/}
27+
## রেফারেন্স {/*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+
DOM থেকে একটি mounted React কম্পোনেন্ট সরাতে এবং এর ইভেন্ট হ্যান্ডলার তথা স্টেট মুছে ফেলতে কল করুন `unmountComponentAtNode`
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+
[নিচে আরো উদাহরণ দেখুন।](#usage)
4343

44-
#### Parameters {/*parameters*/}
44+
#### প্যারামিটার {/*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`: একটি [DOM এলিমেন্ট।](https://developer.mozilla.org/en-US/docs/Web/API/Element) React এই এলিমেন্ট থেকে একটি mounted React কম্পোনেন্ট সরিয়ে ফেলবে।
4747

48-
#### Returns {/*returns*/}
48+
#### রিটার্ন {/*returns*/}
4949

50-
`unmountComponentAtNode` returns `true` if a component was unmounted and `false` otherwise.
50+
`unmountComponentAtNode` `true` রিটার্ন করে যদি একটি কম্পোনেন্ট unmounted হয়ে থাকে, অন্যথা `false` রিটার্ন করে।
5151

5252
---
5353

54-
## Usage {/*usage*/}
54+
## ব্যবহার {/*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={2}>ব্রাউজার DOM নোড</CodeStep> থেকে একটি <CodeStep step={1}>মাউন্টেড React কম্পোনেন্ট</CodeStep> সরিয়ে ফেলবার জন্য এবং এর ইভেন্ট হ্যান্ডলার তথা state মুছে ফেলবার জন্য `unmountComponentAtNode` কল করুন।
5757

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

6969

70-
### Removing a React app from a DOM element {/*removing-a-react-app-from-a-dom-element*/}
70+
### একটি DOM এলিমেন্ট থেকে একটি React অ্যাপ সরিয়ে ফেলা {/*removing-a-react-app-from-a-dom-element*/}
7171

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+
হঠাত হঠাত, আপনি হয়ত আগে থেকে বানানো পেইজে বা সম্পূর্ণরূপে React দিয়ে বানানো নয় এমন একটি পেইজে একটু খানি React "ছিটিয়ে" দিতে চাইবেন। সেই সকল ক্ষেত্রে, আপনাকে হয়ত React অ্যাপটা "বন্ধ" করতে হবে, এর সকল UI, state এবং লিসেনার যেই DOM নোডে রেন্ডার হয়েছে সেখান থেকে মুছে ফেলার মাধ্যমে।
7373

74-
In this example, clicking "Render React App" will render a React app. Click "Unmount React App" to destroy it:
74+
এই উদাহরণে, "Render React App" এ ক্লিক করলে একটি React অ্যাপ রেন্ডার হবে। "Unmount React App" ক্লিক করার মাধ্যমে একে মুছে ফেলুনঃ
7575

7676
<Sandpack>
7777

0 commit comments

Comments
 (0)