From 1af17eeb751cf58b1f0c4b819c18168305ac9a8b Mon Sep 17 00:00:00 2001 From: goFrendiAsgard Date: Mon, 24 Jun 2019 19:57:43 +0700 Subject: [PATCH 01/10] finishing it --- content/docs/faq-functions.md | 91 ++++++++++++++++++----------------- 1 file changed, 46 insertions(+), 45 deletions(-) diff --git a/content/docs/faq-functions.md b/content/docs/faq-functions.md index 62067d39c..9e9a96360 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: Melewatkan fungsi-fungsi ke dalam komponen 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} +### Bagaimana saya melewatkan event handler (seperti onClick) pada sebuah komponen? {#how-do-i-pass-an-event-handler-like-onclick-to-a-component } -Pass event handlers and other functions as props to child components: +Anda bisa melakukannya dengan cara meletakkan event handlers dan fungsi-fungsi lain sebagai props untuk child components: ```jsx