Buckets:
mvp-ai/skill-base / github.com /0xdarkmatter /claude-mods /tests /sample-project /src /components /Input.tsx
| import React, { useState } from 'react'; | |
| interface InputProps { | |
| placeholder?: string; | |
| onChange: (value: string) => void; | |
| } | |
| // TODO: Add validation | |
| export function Input({ placeholder, onChange }: InputProps) { | |
| const [value, setValue] = useState(''); | |
| function handleChange(e: React.ChangeEvent<HTMLInputElement>) { | |
| setValue(e.target.value); | |
| onChange(e.target.value); | |
| } | |
| return <input value={value} onChange={handleChange} placeholder={placeholder} />; | |
| } | |
Xet Storage Details
- Size:
- 480 Bytes
- Xet hash:
- 98a352a8bdad86173a653ef0c5840926da51d7eb93ffb465853cbcdb097022b0
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.