From 9475f2650a3af5005cce34337f8a7a3d32809e03 Mon Sep 17 00:00:00 2001 From: umutcanbolat <10065235+umutcanbolat@users.noreply.github.com> Date: Wed, 24 Apr 2019 23:10:40 +0300 Subject: [PATCH 1/4] translate faq functions page --- content/docs/faq-functions.md | 122 +++++++++++++++++----------------- 1 file changed, 61 insertions(+), 61 deletions(-) diff --git a/content/docs/faq-functions.md b/content/docs/faq-functions.md index 75143c43f..4fc7676f7 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 Atanması 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 işleyici atayabilirim? (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: +Olayları işleyiciler 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 işleyicisine veya geri çağırma fonksiyonuna nasıl parametre aktarırım? {#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 işleyicisini sarmalamak ve parametre aktarmak için ok fonksiyonunu kullanabilirsiniz: ```jsx