diff --git a/content/docs/forms.md b/content/docs/forms.md index 1a8b599d5..1e37baf43 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: +React में 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". +ऊपर दिया गया फॉर्म अन्य HMTL फॉर्म की तरह सबमिट करने पर नए पेज पर चला जाता है। यदि आप इस व्यवहार को React में चाहते हैं, तो यह काम करता है। लेकिन ज्यादातर मामलों में, जावास्क्रिप्ट फ़ंक्शन का उपयोग करना सुविधाजनक होता है क्युकी वह फॉर्म को सब्मिट करने के साथ साथ उसकी उस डाटा तक भी पहुँच होती है जो यूजर फॉर्म मैं भरता है। इसे प्राप्त करने का मानक तरीका "कंट्रोल्ड कौम्पोनॅन्ट" नामक एक तकनीक के साथ है। -## Controlled Components {#controlled-components} +## कंट्रोल्ड कौम्पोनॅन्ट {#controlled-components} -In HTML, form elements such as ``, `