We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 515cbb8 commit 7c06295Copy full SHA for 7c06295
packages/components/src/components/Input/Controlled.tsx
@@ -5,11 +5,5 @@ import { Input } from '.'
5
export function Controlled() {
6
const [value, setValue] = useState('')
7
8
- return (
9
- <Input
10
- onChange={(e) => setValue(e.target.value)}
11
- onClear={() => setValue('')}
12
- value={value}
13
- />
14
- )
+ return <Input onChange={(e) => setValue(e.target.value)} value={value} />
15
}
0 commit comments