@r-hooks/use-input
v1.0.4
Published
react hook for using input.
Downloads
1
Readme
@r-hooks/use-input
react hook for input.
Installation
npm
npm install @r-hooks/use-input
Usage
useInput(initialValue[, validator])
import useInput from "@r-hooks/use-input";
function App() {
const input = useInput("hello world");
return (
<div>
<h1>UseInput</h1>
<input type="text" {...input} />
</div>
);
}