From c38ae8d8d87b9aff6fa4ed8a1faee245d4bff178 Mon Sep 17 00:00:00 2001 From: Sahib Date: Tue, 5 Mar 2019 22:33:18 -0500 Subject: [PATCH 1/4] Initial commit - changed first paragraph --- content/docs/forms.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/docs/forms.md b/content/docs/forms.md index 1a8b599d5..613158f0c 100644 --- a/content/docs/forms.md +++ b/content/docs/forms.md @@ -1,6 +1,6 @@ --- id: forms -title: Forms +title: फॉर्म्स permalink: docs/forms.html prev: lists-and-keys.html next: lifting-state-up.html @@ -9,7 +9,7 @@ redirect_from: - "docs/forms-zh-CN.html" --- -HTML form elements work a little bit differently from other DOM elements in React, because form elements naturally keep some internal state. For example, this form in plain HTML accepts a single name: +रियेक्ट मै HTML फॉर्म के तत्व DOM के तत्वो से थोड़ा भिन्न तरीके से काम करते है, क्योंकि फार्म तत्व स्वाभाविक रूप से कुछ आंतरिक स्थिति रखते हैं . जैसे की, सादे HTML में यह फॉर्म एक ही नाम स्वीकार करेगा: ```html
From e4753facba32cf85141ffb3386569a640a2449d0 Mon Sep 17 00:00:00 2001 From: Sahib Date: Tue, 5 Mar 2019 23:09:07 -0500 Subject: [PATCH 2/4] second commit --- content/docs/forms.md | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/content/docs/forms.md b/content/docs/forms.md index 613158f0c..90000d580 100644 --- a/content/docs/forms.md +++ b/content/docs/forms.md @@ -9,23 +9,24 @@ redirect_from: - "docs/forms-zh-CN.html" --- -रियेक्ट मै HTML फॉर्म के तत्व DOM के तत्वो से थोड़ा भिन्न तरीके से काम करते है, क्योंकि फार्म तत्व स्वाभाविक रूप से कुछ आंतरिक स्थिति रखते हैं . जैसे की, सादे HTML में यह फॉर्म एक ही नाम स्वीकार करेगा: +रियेक्ट मै HTML फॉर्म के तत्व DOM के तत्वो से थोड़ा भिन्न तरीके से काम करते है, क्योंकि फार्म के तत्व स्वाभाविक रूप से कुछ आंतरिक स्थिति रखते हैं, जैसे की, सादे HTML में यह फॉर्म एक ही नाम स्वीकार करेगा: ```html - + ``` -This form has the default HTML form behavior of browsing to a new page when the user submits the form. If you want this behavior in React, it just works. But in most cases, it's convenient to have a JavaScript function that handles the submission of the form and has access to the data that the user entered into the form. The standard way to achieve this is with a technique called "controlled components". -## Controlled Components {#controlled-components} +जब उपयोगकर्ता फॉर्म को सबमिट करता है, तो इस फ़ॉर्म में नए पेज पर ब्राउज़िंग का डिफ़ॉल्ट HTML फॉर्म व्यवहार होता है। यदि आप इस व्यवहार को प्रतिक्रिया में चाहते हैं, तो यह काम करता है। लेकिन ज्यादातर मामलों में, जावास्क्रिप्ट फ़ंक्शन का उपयोग करना सुविधाजनक होता है जो फ़ॉर्म को प्रस्तुत करने में सक्षम होता है और उस डेटा तक पहुंच होती है जो उपयोगकर्ता ने फॉर्म में दर्ज किया था। इसे प्राप्त करने का मानक तरीका "नियंत्रित घटकों" नामक एक तकनीक के साथ है। -In HTML, form elements such as ``, `