`). Clicking a button is not the same thing as clicking the surrounding toolbar, so stopping the propagation makes sense for this UI.
-#### Capture phase events {/*capture-phase-events*/}
+#### कैप्चर चरण events {/*capture-phase-events*/}
+
+कभी-कभी, आपको बच्चों के तत्वों पर सभी events को पकड़ने की आवश्यकता हो सकती है, *यहाँ तक कि अगर उन्होंने प्रचारण को रोक दिया हो*। उदाहरण के लिए, हो सकता है कि आप हर क्लिक को एनालिटिक्स में लॉग करना चाहते हों, चाहे प्रचारण लॉजिक कुछ भी हो। आप यह `Capture` को event नाम के अंत में जोड़कर कर सकते हैं:
-In rare cases, you might need to catch all events on child elements, *even if they stopped propagation*. For example, maybe you want to log every click to analytics, regardless of the propagation logic. You can do this by adding `Capture` at the end of the event name:
```js
{ /* this runs first */ }}>
@@ -433,19 +453,21 @@ In rare cases, you might need to catch all events on child elements, *even if th
```
-Each event propagates in three phases:
+प्रत्येक event तीन चरणों में प्रचारित होता है:
-1. It travels down, calling all `onClickCapture` handlers.
-2. It runs the clicked element's `onClick` handler.
-3. It travels upwards, calling all `onClick` handlers.
+1. यह नीचे की ओर यात्रा करता है, सभी `onClickCapture` हैंडलर्स को कॉल करता है।
+2. यह क्लिक किए गए तत्व का `onClick` हैंडलर चलाता है।
+3. यह ऊपर की ओर यात्रा करता है, सभी `onClick` हैंडलर्स को कॉल करता है।
+
+कैप्चर events राउटर्स या एनालिटिक्स जैसे कोड के लिए उपयोगी होते हैं, लेकिन आप इन्हें ऐप कोड में शायद ही कभी उपयोग करेंगे।
-Capture events are useful for code like routers or analytics, but you probably won't use them in app code.
-### Passing handlers as alternative to propagation {/*passing-handlers-as-alternative-to-propagation*/}
+### प्रचारण के विकल्प के रूप में हैंडलर्स को पास करना {/*passing-handlers-as-alternative-to-propagation*/}
+
+ध्यान दें कि कैसे यह क्लिक हैंडलर एक लाइन का कोड चलाता है _और फिर_ पैरेंट द्वारा पास किए गए `onClick` prop को कॉल करता है:
-Notice how this click handler runs a line of code _and then_ calls the `onClick` prop passed by the parent:
```js {4,5}
function Button({ onClick, children }) {
@@ -460,13 +482,14 @@ function Button({ onClick, children }) {
}
```
-You could add more code to this handler before calling the parent `onClick` event handler, too. This pattern provides an *alternative* to propagation. It lets the child component handle the event, while also letting the parent component specify some additional behavior. Unlike propagation, it's not automatic. But the benefit of this pattern is that you can clearly follow the whole chain of code that executes as a result of some event.
+आप इस हैंडलर में पैरेंट के `onClick` event handler को कॉल करने से पहले और भी कोड जोड़ सकते हैं। यह पैटर्न प्रचारण का एक *विकल्प* प्रदान करता है। यह बच्चे के कौम्पोनॅन्ट को event को संभालने देता है, जबकि पैरेंट कौम्पोनॅन्ट को कुछ अतिरिक्त व्यवहार निर्दिष्ट करने की अनुमति देता है। प्रचारण के विपरीत, यह स्वचालित नहीं होता है। लेकिन इस पैटर्न का लाभ यह है कि आप उस पूरी कोड चेन को स्पष्ट रूप से देख सकते हैं जो किसी event के परिणामस्वरूप निष्पादित होती है।
-If you rely on propagation and it's difficult to trace which handlers execute and why, try this approach instead.
+अगर आप प्रचारण पर निर्भर हैं और यह ट्रेस करना मुश्किल हो कि कौन से हैंडलर्स निष्पादित होते हैं और क्यों, तो इसके बजाय यह तरीका आजमाएं।
-### Preventing default behavior {/*preventing-default-behavior*/}
-Some browser events have default behavior associated with them. For example, a `