From 9aa3b89a665898da88df2e3df5af23dba5a5bfa1 Mon Sep 17 00:00:00 2001 From: Angelos Chalaris Date: Mon, 10 Dec 2018 10:16:44 +0200 Subject: [PATCH] Update Input.md --- snippets/Input.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/Input.md b/snippets/Input.md index b46238227..aab046860 100644 --- a/snippets/Input.md +++ b/snippets/Input.md @@ -6,12 +6,12 @@ Use object destructuring to set defaults for certain attributes of the `` Render an `` element with the appropriate attributes and use the `callback` function in the `onChange` event to pass the value of the input to the parent. ```jsx -function Input ({ callback, type = 'text', disabled = false, readonly = false, placeholder = '' }) { +function Input ({ callback, type = 'text', disabled = false, readOnly = false, placeholder = '' }) { return ( callback(event.target.value)} />