diff --git a/content/docs/faq-functions.md b/content/docs/faq-functions.md index f03b2ba76d..d660c0cd88 100644 --- a/content/docs/faq-functions.md +++ b/content/docs/faq-functions.md @@ -1,26 +1,26 @@ --- id: faq-functions -title: Passing Functions to Components +title: 传递函数给组件 permalink: docs/faq-functions.html layout: docs category: FAQ --- -### How do I pass an event handler (like onClick) to a component? {#how-do-i-pass-an-event-handler-like-onclick-to-a-component} +### 如何将事件处理器(比如 onClick)传递给组件?{#how-do-i-pass-an-event-handler-like-onclick-to-a-component} -Pass event handlers and other functions as props to child components: +可以将事件处理器和其他函数作为 props 传递给子组件: ```jsx