Skip to content

Commit b70a2c2

Browse files
committed
lint fix
1 parent 2cf6e2f commit b70a2c2

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,17 @@ title: "State: एक कौम्पोनॅन्ट की मेमोर
44

55
<Intro>
66

7-
कोई भी इंटरेक्शन होने की वजह स कौम्पोनॅन्ट को अक्सर स्क्रीन पर क्या दिख रहा है उसको बदलना होता है। फॉर्म में टाइप करने पर इनपुट फील्ड अपडेट होने चाहिए, इमेज करौसेल के "next" को क्लिक करने पर करौसेल की इमेज बदलनी चाहिए, "buy" पर क्लिक करने पर एक प्रोडक्ट शॉपिंग कार्ट में ऐड होना चाहिए। कौम्पोनॅन्ट को चीजों को "याद रखना" चाहिए: इनपुट की अभी की वैल्यू, अभी की इमेज, शॉपिंग कार्ट। React में, इस प्रकार की कौम्पोनॅन्ट-स्पेसिफिक मेमोरी को *State* कहा जाता है।
7+
Components often need to change what's on the screen as a result of an interaction. Typing into the form should update the input field, clicking "next" on an image carousel should change which image is displayed, clicking "buy" should put a product in the shopping cart. Components need to "remember" things: the current input value, the current image, the shopping cart. In React, this kind of component-specific memory is called *state*.
88

99
</Intro>
1010

11+
1112
<YouWillLearn>
1213

13-
* state वेरिएबल को [`useState`](/reference/react/useState) Hook के साथ कैसे ऐड करें
14-
* `useState` Hook कोनसे वैल्यूज की पेअर को रिटर्न करता है
15-
* एक से अधिक स्टेट वेरिएबल कैसे ऐड करें
16-
* state को लोकल क्यों कहा जाता है
14+
* How to add a state variable with the [`useState`](/reference/react/useState) Hook
15+
* What pair of values the `useState` Hook returns
16+
* How to add more than one state variable
17+
* Why state is called local
1718

1819
</YouWillLearn>
1920

@@ -1341,6 +1342,7 @@ export default function FeedbackForm() {
13411342
if (isSent) {
13421343
return <h1>Thank you!</h1>;
13431344
} else {
1345+
// eslint-disable-next-line
13441346
const [message, setMessage] = useState('');
13451347
return (
13461348
<form onSubmit={e => {
@@ -1500,4 +1502,4 @@ export default function FeedbackForm() {
15001502
15011503
</Solution>
15021504
1503-
</Challenges>
1505+
</Challenges>

0 commit comments

Comments
 (0)