{"id":20214381,"url":"https://github.com/raffian-moin/react-hook-form-lecture","last_synced_at":"2026-04-16T19:45:53.144Z","repository":{"id":259402145,"uuid":"877454821","full_name":"Raffian-moin/React-hook-form-lecture","owner":"Raffian-moin","description":"Code demonstration for the introduction of React hook form session at TechnoVista Limited","archived":false,"fork":false,"pushed_at":"2024-10-27T08:52:19.000Z","size":74,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-13T21:44:27.592Z","etag":null,"topics":["nextui","react-hook-form","react-router","reactjs"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Raffian-moin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-23T17:17:32.000Z","updated_at":"2024-10-27T08:52:22.000Z","dependencies_parsed_at":"2024-10-25T04:56:36.814Z","dependency_job_id":"06eda0bb-17c5-4cd3-a02d-41501932cc4d","html_url":"https://github.com/Raffian-moin/React-hook-form-lecture","commit_stats":null,"previous_names":["raffian-moin/react-hook-form-lecture"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raffian-moin%2FReact-hook-form-lecture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raffian-moin%2FReact-hook-form-lecture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raffian-moin%2FReact-hook-form-lecture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Raffian-moin%2FReact-hook-form-lecture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Raffian-moin","download_url":"https://codeload.github.com/Raffian-moin/React-hook-form-lecture/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241652969,"owners_count":19997578,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nextui","react-hook-form","react-router","reactjs"],"created_at":"2024-11-14T06:15:44.648Z","updated_at":"2026-04-16T19:45:48.090Z","avatar_url":"https://github.com/Raffian-moin.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# What We Covered at the Session\n\n1. Common Form Handling Tasks\n   - Validate Form Data\n   - Display Error Messages\n   - Clear Input Fields\n   - Conditional Input Field Display\n   - Prefill Data on Edit\n\n2. Controlled vs Uncontrolled Components\n   - Value, onChange, and DefaultValue\n\n3. React-Hook-Form and Uncontrolled Input Components\n   - How React-Hook-Form Registers Input Fields\n   - Form Submission with React-Hook-Form\n   - Form Validation Rules\n   - Displaying Error Messages\n   - Resetting Input Fields\n   - Using watch() for UI Changes\n   - Prefill Data in Edit Mode\n\n4. React-Hook-Form and Controlled Components with UI Libraries\n\n5. Code Organization\n   - Avoiding Duplicate Code: Creating Input Field Components\n   - Handling Too Many Props: Using useFormContext\n\n6. Performance\n   - Using useWatch to avoid re-rendering of whole tree\n\n## Installation\n\n- **Requirements**:\n  - **Node.js**: \u003e= 16.0\n\n1. **Clone the repository:**\n   ```bash\n   git clone https://github.com/Raffian-moin/React-hook-form-lecture.git\n\n2. **Navigate to the project directory:**\n    ```bash\n    cd React-hook-form-lecture\n\n4. **Install dependencies:**\n    ```bash\n    npm install\n\n5. **Run project:**\n    ```bash\n    npm run dev","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraffian-moin%2Freact-hook-form-lecture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraffian-moin%2Freact-hook-form-lecture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraffian-moin%2Freact-hook-form-lecture/lists"}