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)} />