- Hightlight input-text when focus
Install the package
npm install --save react-focus-input-z
Import the module in the place you want to use:
import "react-focus-input-z/build/styles.css";
import FocusInput from "react-focus-input-z";
const [value, setValue] = useState("");
<FocusInput value={value} onChange={evt => setValue(evt.target.value)} />
see index.d.ts
HtmlInput
1.3.0-np: Update auto focus if needed. (standard)
1.5.0-np: Optimize something
MIT