diff --git a/content/docs/faq-functions.md b/content/docs/faq-functions.md index 75143c43f..aac4ec41f 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: Bileşenlere Fonksiyon Gönderilmesi 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} +### Bir bileşene nasıl olay yöneticisi gönderebilirim? (onClick gibi) {#how-do-i-pass-an-event-handler-like-onclick-to-a-component} -Pass event handlers and other functions as props to child components: +Olay yöneticileri ve diğer fonksiyonlar alt bileşenlere prop olarak aktarılabilir: ```jsx } ``` -Instead, *pass the function itself* (without parens): +Bunun yerine, *fonksiyonun kendisini aktarın* (parantezler olmadan): ```jsx render() { - // Correct: handleClick is passed as a reference! + // Doğru: handleClick referans olarak aktarılıyor! return } ``` -### How do I pass a parameter to an event handler or callback? {#how-do-i-pass-a-parameter-to-an-event-handler-or-callback} +### Bir olay yöneticisine veya geri çağırma fonksiyonuna nasıl parametre gönderirim? {#how-do-i-pass-a-parameter-to-an-event-handler-or-callback} -You can use an arrow function to wrap around an event handler and pass parameters: +Bir olay yöneticisini sarmalamak ve parametre göndermek için ok fonksiyonunu kullanabilirsiniz: ```jsx