Skip to content

Commit 31f7592

Browse files
committed
feat: ✨ Translate 100% (Challenge 4 of 4)
1 parent ab74ab4 commit 31f7592

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/content/learn/extracting-state-logic-into-a-reducer.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2439,7 +2439,7 @@ textarea {
24392439
24402440
<Solution>
24412441
2442-
Dispatching an action calls a reducer with the current state and the action, and stores the result as the next state. This is what it looks like in code:
2442+
একটি action কে dispatch করলে তা বর্তমান স্টেট এবং action টি নিয়ে reducer কে কল করে, এবং প্রাপ্ত ফলাফলটিকে পরবর্তী স্টেট হিসেবে ব্যাবহার করে। কোডে এটা এমন দেখাবেঃ
24432443
24442444
<Sandpack>
24452445
@@ -2614,15 +2614,15 @@ textarea {
26142614
26152615
</Sandpack>
26162616
2617-
Though it doesn't matter in most cases, a slightly more accurate implementation looks like this:
2617+
যদিও অধিকাংশ ক্ষেত্রে তেমন কিছু আসে যায় না, তবে এর আরেকটু সঠিক সমাধান হবেঃ
26182618
26192619
```js
26202620
function dispatch(action) {
26212621
setState((s) => reducer(s, action));
26222622
}
26232623
```
26242624
2625-
This is because the dispatched actions are queued until the next render, [similar to the updater functions.](/learn/queueing-a-series-of-state-updates)
2625+
এর কারণ dispatch করা action গুলো পরবর্তী রেন্ডার পর্যন্ত সারিবদ্ধভাবে দাঁড় করিয়ে রাখা হয়, [updater functions এর মতো।](/learn/queueing-a-series-of-state-updates)
26262626
26272627
</Solution>
26282628

0 commit comments

Comments
 (0)