Skip to content

Commit 4f5918b

Browse files
committed
Translate 1st two p from Challenges/Focus a field conditionally
1 parent 75e1c95 commit 4f5918b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,11 +1129,11 @@ body {
11291129
11301130
</Solution>
11311131
1132-
#### Focus a field conditionally {/*focus-a-field-conditionally*/}
1132+
#### কন্ডিশনালি একটি ফিল্ডে ফোকাস করা {/*focus-a-field-conditionally*/}
11331133
1134-
This form renders two `<MyInput />` components.
1134+
এই ফর্মটি দুটি `<MyInput />` কম্পোনেন্ট রেন্ডার করে।
11351135
1136-
Press "Show form" and notice that the second field automatically gets focused. This is because both of the `<MyInput />` components try to focus the field inside. When you call `focus()` for two input fields in a row, the last one always "wins".
1136+
"Show form" চাপুন এবং লক্ষ্য করুন যে দ্বিতীয় ফিল্ডটি অটোম্যাটিকভাবে ফোকাস পাচ্ছে। এটা ঘটার কারণ উভয় `<MyInput />` কম্পোনেন্টই নিজেদের ফিল্ডে ফোকাস করার চেষ্টা করে। যখন আপনি পরপর দুটি ইনপুট ফিল্ডের জন্য `focus()` কল করেন, শেষেরটি সবসময় "জিতে" যায়।
11371137
11381138
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`.
11391139

0 commit comments

Comments
 (0)