text: import { useState } from "react";
  
  const useInput = (initialValue = "") => {
    const [value, setValue] = useState(initialValue);
    const reset = () => {
      setValue("");
    };
    const bind = {
      value,
      onChange: (e) => {
        setValue(e.target.value);
      },
    };
  
    return [value, bind, reset];
  };
  
  export default useInput;
  