0.0.3 • Published 3 years ago

4leaf-hooks-useinput v0.0.3

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

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>
  ;
}

Arguments