diff --git a/beta/src/pages/learn/writing-markup-with-jsx.md b/beta/src/pages/learn/writing-markup-with-jsx.md
index 4e4ff9298..704283ce4 100644
--- a/beta/src/pages/learn/writing-markup-with-jsx.md
+++ b/beta/src/pages/learn/writing-markup-with-jsx.md
@@ -1,24 +1,24 @@
---
-title: Writing Markup with JSX
+title: JSX के साथ मार्कअप लिखना
---
-*JSX* is a syntax extension for JavaScript that lets you write HTML-like markup inside a JavaScript file. Although there are other ways to write components, most React developers prefer the conciseness of JSX, and most codebases use it.
+*JSX* जावास्क्रिप्ट के लिए एक सिंटैक्स एक्सटेंशन है जो आपको जावास्क्रिप्ट फ़ाइल के अंदर HTML जैसा मार्कअप लिखने देता है। यद्यपि कौम्पोनॅन्ट्स को लिखने के अन्य तरीके हैं, अधिकांश React डेवलपर्स JSX की संक्षिप्तता को पसंद करते हैं, और अधिकांश कोडबेस इसका उपयोग करते हैं।
-* Why React mixes markup with rendering logic
-* How JSX is different from HTML
-* How to display information with JSX
+* React मार्कअप को रेंडरिंग लॉजिक के साथ क्यों मिलाता है
+* JSX HTML से कैसे अलग है
+* JSX के साथ जानकारी कैसे डिस्प्ले करें
-## JSX: Putting markup into JavaScript {/*jsx-putting-markup-into-javascript*/}
+## JSX: जावास्क्रिप्ट में मार्कअप डालना {/*jsx-putting-markup-into-javascript*/}
-The Web has been built on HTML, CSS, and JavaScript. For many years, web developers kept content in HTML, design in CSS, and logic in JavaScript—often in separate files! Content was marked up inside HTML while the page's logic lived separately in JavaScript:
+वेब को HTML, CSS और जावास्क्रिप्ट पर बनाया गया है। कई वर्षों तक, वेब डेवलपर्स ने HTML में कंटेंट, CSS में डिज़ाइन और जावास्क्रिप्ट में लॉजिक अक्सर अलग-अलग फाइलों में रखा! कंटेंट को HTML के अंदर चिह्नित किया गया था जबकि पेज का लॉजिक जावास्क्रिप्ट में अलग से रहता था:
@@ -36,7 +36,7 @@ JavaScript
-But as the Web became more interactive, logic increasingly determined content. JavaScript was in charge of the HTML! This is why **in React, rendering logic and markup live together in the same place—components.**
+लेकिन जैसे-जैसे वेब अधिक इंटरैक्टिव होता गया, लॉजिक कंटेंट को अधिकाधिक निर्धारित करता गया। जावास्क्रिप्ट HTML का इन्चार्ज था! यही कारण है कि **React में, रेंडरिंग लॉजिक और मार्कअप एक ही स्थान पर एक साथ रहते हैं—कौम्पोनॅन्टस!**
@@ -54,19 +54,19 @@ But as the Web became more interactive, logic increasingly determined content. J
-Keeping a button's rendering logic and markup together ensures that they stay in sync with each other on every edit. Conversely, details that are unrelated, such as the button's markup and a sidebar's markup, are isolated from each other, making it safer to change either of them on their own.
+एक बटन के रेंडरिंग लॉजिक और मार्कअप को एक साथ रखने से यह सुनिश्चित होता है कि वे प्रत्येक संपादन पर एक दूसरे के साथ तालमेल बिठाते रहें। इसके विपरीत, जो डिटेल्स असंबंधित हैं, जैसे कि बटन का मार्कअप और साइडबार का मार्कअप, एक दूसरे से अलग हो जाते हैं, जिससे उनमें से किसी एक को अपने आप बदलना सुरक्षित हो जाता है।
-Each React component is a JavaScript function that may contain some markup that React renders into the browser. React components use a syntax extension called JSX to represent that markup. JSX looks a lot like HTML, but it is a bit stricter and can display dynamic information. The best way to understand this is to convert some HTML markup to JSX markup.
+प्रत्येक React कौम्पोनॅन्ट एक जावास्क्रिप्ट फ़ंक्शन है जिसमें कुछ मार्कअप हो सकते हैं जो React ब्राउज़र में रेंडर करता है। React कौम्पोनॅन्ट मार्कअप को रिप्रेजेंट करने के लिए JSX नामक एक सिंटैक्स एक्सटेंशन का उपयोग करते हैं। JSX HTML की तरह दिखता है, लेकिन यह थोड़ा सख्त है और डायनामिक जानकारी डिस्प्ले कर सकता है। इसे समझने का सबसे अच्छा तरीका कुछ HTML मार्कअप को JSX मार्कअप में बदलना है।
-[JSX and React are two separate things](/blog/2020/09/22/introducing-the-new-jsx-transform.html#whats-a-jsx-transform) you _can_ use independently of each other.
+[JSX और React दो अलग चीजें हैं](/blog/2020/09/22/introducing-the-new-jsx-transform.html#whats-a-jsx-transform) आप एक दूसरे से स्वतंत्र रूप से उपयोग कर सकते हैं।
-## Converting HTML to JSX {/*converting-html-to-jsx*/}
+## HTML को JSX में बदलना {/*converting-html-to-jsx*/}
-Suppose that you have some (perfectly valid) HTML:
+मान लीजिए कि आपके पास कुछ (पूरी तरह से वैलिड) HTML है:
```html
Hedy Lamarr's Todos
@@ -74,15 +74,15 @@ Suppose that you have some (perfectly valid) HTML:
src="https://i.imgur.com/yXOvdOSs.jpg"
alt="Hedy Lamarr"
class="photo"
->
+ >
- - Invent new traffic lights
-
- Rehearse a movie scene
-
- Improve the spectrum technology
+
- नई ट्रैफिक लाइट का आविष्कार करें
+
- एक फिल्म के दृश्य का पूर्वाभ्यास करें
+
- स्पेक्ट्रम तकनीक में सुधार
```
-And you want to put it into your component:
+और आप इसे अपने कौम्पोनॅन्ट में रखना चाहते हैं:
```js
export default function TodoList() {
@@ -92,25 +92,24 @@ export default function TodoList() {
}
```
-If you copy and paste it as is, it will not work:
-
+यदि आप इसे वैसे ही कॉपी और पेस्ट करते हैं, तो यह काम नहीं करेगा:
```js
export default function TodoList() {
return (
- // This doesn't quite work!
+ // यह काम नहीं करता!
Hedy Lamarr's Todos
-
- - Invent new traffic lights
-
- Rehearse a movie scene
-
- Improve the spectrum technology
+
- नई ट्रैफिक लाइट का आविष्कार करें
+
- एक फिल्म के दृश्य का पूर्वाभ्यास करें
+
- स्पेक्ट्रम तकनीक में सुधार
);
}
@@ -122,28 +121,27 @@ img { height: 90px }
-This is because JSX is stricter and has a few more rules than HTML! If you read the error messages above, they'll guide you to fix the markup, or you can follow the guide below.
+ऐसा इसलिए है क्योंकि JSX सख्त है और इसमें HTML की तुलना में कुछ और नियम हैं! यदि आप ऊपर दिए गए एरर मैसेजेस को पढ़ते हैं, तो वे मार्कअप को ठीक करने के लिए आपका मार्गदर्शन करेंगे, या आप नीचे दी गई गाइड का फॉलो कर सकते हैं।
-Most of the times, React's on-screen error messages will help you find where the problem is. Give them a read if you get stuck!
-
+अधिकांश समय, React के ऑन-स्क्रीन एरर मैसेजेस आपको यह पता लगाने में मदद करेंगे कि समस्या कहाँ है। अगर आप फंस गए हैं तो उन्हें पढ़ लें!
-## The Rules of JSX {/*the-rules-of-jsx*/}
+## JSX के नियम {/*the-rules-of-jsx*/}
-### 1. Return a single root element {/*1-return-a-single-root-element*/}
+### 1. एक सिंगल रुट एलिमेंट रिटर्न करें {/*1-return-a-single-root-element*/}
-To return multiple elements from a component, **wrap them with a single parent tag**.
+एक कौम्पोनॅन्ट से कई एलिमेंट्स को रिटर्न करने के लिए, **उन्हें सिंगल पैरेंट टैग मैं ऐड करें**।
-For example, you can use a ``:
+उदाहरण के लिए, आप एक `
` का उपयोग कर सकते हैं:
```js {1,11}
Hedy Lamarr's Todos
-