Skip to content

A React Custom Hook that allows to format and verify Rut (Chilean DNI).

License

Notifications You must be signed in to change notification settings

carlosfdezb/use-rut

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

useRut hook

A React Custom Hook that allows to format and verify Rut (Chilean DNI).

Edit use-rut

Installation

npm install use-rut

How to use

...
import useRut from 'use-rut';

function App() {
  const [rut, valido, setRut] = useRut();
  return (
    <div className="App">
      <input onChange={(e) => setRut(e.target.value)} value={rut}/>
      <h2>{`valido: ${valido}`}</h2>
    </div>
  );
}

🤖 Author

Carlos Fernández

You can follow me on github


Copyright © 2021 UseRut Hook.

About

A React Custom Hook that allows to format and verify Rut (Chilean DNI).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published