diff --git a/snippets/TagInput.md b/snippets/TagInput.md index 6f467101d..adae92acc 100644 --- a/snippets/TagInput.md +++ b/snippets/TagInput.md @@ -72,7 +72,7 @@ Renders an input field to add tags. ``` ```jsx -function TagInput(props) { +function TagInput() { const [tags, setTags] = React.useState(['NodeJs', 'MongoDB']) const removeTags = indexToRemove => { setTags([...tags.filter((_, index) => index !== indexToRemove)]) @@ -84,26 +84,25 @@ function TagInput(props) { } } return ( -
-