4leaf-hooks-useinput
v0.0.3
Published
React Hooks to realtime change input value
Downloads
9
Maintainers
Readme
4leaf-hooks-useinput
React Hooks to realtime change input value
installation
yarn
npm
Usage
import React from "react";
import useInput from "4leaf-hooks-useinput";
const App = () => {
const formId = useInput(``);
// If you change the value
formId.setValue("New Value Here!");
return <form>
<div>
<label> ID </label>
<input type="text" {...formId}/>
</div>
<form>
;
}