Skip to content

Commit de7f5f3

Browse files
Remove unnecessary state explanation in Hindi
1 parent f573692 commit de7f5f3

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/content/learn/state-a-components-memory.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1444,11 +1444,7 @@ export default function FeedbackForm() {
14441444

14451445
#### अनावश्यक State हटाएं {/*remove-unnecessary-state*/}
14461446

1447-
<<<<<<< HEAD
1448-
इस उदाहरण में, जब बटन क्लिक किया जाता है तो यूज़र का नाम पूछना चाहिए और फिर उन्हें अभिवादन करते हुए एक अलर्ट प्रदर्शित करना चाहिए। आपने नाम रखने के लिए state का उपयोग करने की कोशिश की, लेकिन किसी कारण से यह हमेशा "Hello, !" दिखाता है।
1449-
=======
1450-
When the button is clicked, this example should ask for the user's name and then display an alert greeting them. You tried to use state to keep the name, but for some reason the first time it shows "Hello, !", and then "Hello, [name]!" with the previous input every time after.
1451-
>>>>>>> fc29603434ec04621139738f4740caed89d659a7
1447+
जब बटन पर क्लिक किया जाता है, तो यह उदाहरण उपयोगकर्ता का नाम पूछेगा और फिर एक अलर्ट दिखाएगा जो उनका अभिवादन करेगा। आपने नाम को रखने के लिए राज्य (state) का उपयोग करने की कोशिश की, लेकिन किसी कारण से पहली बार यह “Hello, !” दिखाता है, और फिर हर बार पिछले इनपुट के साथ “Hello, [name]!” दिखाता हैं।
14521448

14531449
इस कोड को ठीक करने के लिए, अनावश्यक state वेरिएबल को हटा दें। (हम इस बारे में [यह काम क्यों नहीं करता](/learn/troubleshooting-state-updates#setting-state-does-not-update-variables) बाद में चर्चा करेंगे।)
14541450

0 commit comments

Comments
 (0)