diff --git a/snippets/Input.md b/snippets/Input.md index c899c86d3..b46238227 100644 --- a/snippets/Input.md +++ b/snippets/Input.md @@ -6,14 +6,13 @@ 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 = '', value = '' }) { +function Input ({ callback, type = 'text', disabled = false, readonly = false, placeholder = '' }) { return ( callback(event.target.value)} /> );