1.0.6 • Published 1 year ago

validatorus-react v1.0.6

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

validatorus-react

npm license TypeScript

ReactJS lightweight field validator

demo

install

yarn add validatorus-react or npm install validatorus-react

example

export const App: React.FC = () => {
    const input = new VldBuilder()
        .with(vlds.VLen, 0, 5)
        .withFname('Name')

    return (
        <div className="App">
            <header className="App-header">
                <input
                    type="text"
                    value={input.value}
                    onChange={(e) => {
                        input.change(e.target.value)
                        console.log(e.target.value)
                    }}
                />
                <p>{input.error}</p>
            </header>
        </div>
    )
}

license

MIT license. Read more in LICENSE file.

1.0.6

1 year ago

1.0.5

1 year ago

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