function Input(props) { const [hasFocus, setFocus] = useState(false); return ( <input {...props} onFocus={() => setFocus(true)} onBlur={() => setFocus(false)} /> ); }