Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@dobuzi_hooks/use-input

Dobuzi23MIT1.0.1

React hook to use input

react, hooks, input

readme

@dobuzi_hooks/use-input

React hook to use input

Usage

import useInput from "@nooks/use-input";

const App = () => {
    const noAt = (value) => !value.includes("@");
    const name = useInput("Mr. ", noAt);
    return (
        <div className="App">
            <h1>Hello</h1>
            <input placeholder="Name" {...name.props} />
        </div>
    );
};