1.0.4 • Published 1 year ago

@r-hooks/use-input v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@r-hooks/use-input

npm version

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

Hooklist

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago