1.0.4 • Published 2 years ago

@r-hooks/use-input v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years 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

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago