Skip to content

Commit 2f6f250

Browse files
committed
Translate 3rd p from Challenges/Focus a field conditionally
1 parent 4f5918b commit 2f6f250

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
@@ -1135,7 +1135,7 @@ body {
11351135
11361136
"Show form" চাপুন এবং লক্ষ্য করুন যে দ্বিতীয় ফিল্ডটি অটোম্যাটিকভাবে ফোকাস পাচ্ছে। এটা ঘটার কারণ উভয় `<MyInput />` কম্পোনেন্টই নিজেদের ফিল্ডে ফোকাস করার চেষ্টা করে। যখন আপনি পরপর দুটি ইনপুট ফিল্ডের জন্য `focus()` কল করেন, শেষেরটি সবসময় "জিতে" যায়।
11371137
1138-
Let's say you want to focus the first field. The first `MyInput` component now receives a boolean `shouldFocus` prop set to `true`. Change the logic so that `focus()` is only called if the `shouldFocus` prop received by `MyInput` is `true`.
1138+
ধরুন আপনি প্রথম ফিল্ডটিকে ফোকাস করতে চান। প্রথম `MyInput` কম্পোনেন্টটি এখন একটি বুলিয়ান `shouldFocus` প্রপ পায় যা `true` সেট করা আছে। লজিকে এমন পরিবর্তন আনুন যাতে `focus()` কেবল তখনই কল করা হয় যখন `MyInput` এ পাস করা `shouldFocus` প্রপটি `true` হয়।
11391139
11401140
<Sandpack>
11411141

0 commit comments

Comments
 (0)