├── .gitignore ├── README.md ├── index.html ├── package-lock.json ├── package.json ├── public └── vite.svg ├── src ├── App.css ├── App.jsx ├── assets │ └── react.svg ├── index.css └── main.jsx └── vite.config.js /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | yarn-debug.log* 6 | yarn-error.log* 7 | pnpm-debug.log* 8 | lerna-debug.log* 9 | 10 | node_modules 11 | dist 12 | dist-ssr 13 | *.local 14 | 15 | # Editor directories and files 16 | .vscode/* 17 | !.vscode/extensions.json 18 | .idea 19 | .DS_Store 20 | *.suo 21 | *.ntvs* 22 | *.njsproj 23 | *.sln 24 | *.sw? 25 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## React Hook Form Tutorial 2 | 3 | This is a tutorial on how to use React Hook Form. It is a library that helps you validate your forms in React. It is a very simple and easy to use library. It is also very lightweight and fast. It is a great alternative to Formik. 4 | 5 | ## Installation 6 | 7 | ```bash 8 | git clone https://github.com/fazt/react-hook-form-tutorial 9 | cd react-hook-form-tutorial 10 | npm install 11 | npm run dev 12 | ``` 13 | 14 | or you can try the live demo: https://fazt.github.io/react-hook-form-tutorial/ 15 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 |