Skip to content

Commit 262caf2

Browse files
committed
Translate Solution from Challenges/Focus a field conditionally
1 parent 237f2ca commit 262caf2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/content/learn/synchronizing-with-effects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1225,7 +1225,7 @@ body {
12251225
12261226
<Solution>
12271227
1228-
Put the conditional logic inside the Effect. You will need to specify `shouldFocus` as a dependency because you are using it inside the Effect. (This means that if some input's `shouldFocus` changes from `false` to `true`, it will focus after mount.)
1228+
কন্ডিশনাল লজিকটি ইফেক্টের ভিতরে রাখুন। আপনাকে `shouldFocus` কে একটি ডিপেন্ডেন্সি হিসেবে উল্লেখ করতে হবে কারণ আপনি এটি ইফেক্টের ভিতরে ব্যবহার করছেন। (এর মানে হল যে যদি কোনো ইনপুটের `shouldFocus` `false` থেকে `true` তে পরিবর্তিত হয়, তাহলে এটি মাউন্টের পরে ফোকাস পাবে।)
12291229
12301230
<Sandpack>
12311231

0 commit comments

Comments
 (0)