Skip to content

Commit b32f674

Browse files
committed
translate usage -> extracting-the-logic-to-a-custom-hook
1 parent 9cf2a24 commit b32f674

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/content/reference/react/useSyncExternalStore.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,11 +241,11 @@ function subscribe(callback) {
241241
242242
---
243243
244-
### Extracting the logic to a custom Hook {/*extracting-the-logic-to-a-custom-hook*/}
244+
### কোনো কাস্টম হুকে লজিক এক্সট্র্যাক্ট করা {/*extracting-the-logic-to-a-custom-hook*/}
245245
246-
Usually you won't write `useSyncExternalStore` directly in your components. Instead, you'll typically call it from your own custom Hook. This lets you use the same external store from different components.
246+
সাধারণত আপনি আপনার কম্পোনেন্টে সরাসরি `useSyncExternalStore` লিখবেন না। এর পরিবর্তে, আপনার নিজস্ব কাস্টম হুক থেকে এটি কল করাটাই সচরাচর ব্যবহৃত হয়। এটি আপনাকে বিভিন্ন কম্পোনেন্টে একই এক্সটার্নাল স্টোর ব্যবহার করতে দেয়।
247247
248-
For example, this custom `useOnlineStatus` Hook tracks whether the network is online:
248+
উদাহরণস্বরূপ, এই কাস্টম `useOnlineStatus` হুকটি ট্র্যাক করে যে নেটওয়ার্কটি অনলাইনে আছে কি না:
249249
250250
```js {3,6}
251251
import { useSyncExternalStore } from 'react';
@@ -264,7 +264,7 @@ function subscribe(callback) {
264264
}
265265
```
266266
267-
Now different components can call `useOnlineStatus` without repeating the underlying implementation:
267+
এখন বিভিন্ন কম্পোনেন্ট কোনো ভেতরের ইমপ্লিমেন্টেশনের পুনরাবৃত্তি ছাড়াই `useOnlineStatus` কে কল করতে পারবে:
268268
269269
<Sandpack>
270270

0 commit comments

Comments
 (0)