diff --git a/snippets/Input.md b/snippets/Input.md index aab046860..91c14c452 100644 --- a/snippets/Input.md +++ b/snippets/Input.md @@ -8,12 +8,12 @@ Render an `` element with the appropriate attributes and use the `callbac ```jsx function Input ({ callback, type = 'text', disabled = false, readOnly = false, placeholder = '' }) { return ( - callback(event.target.value)} + onChange={({ target: { value }}) => callback(value)} /> ); }