{"id":23403437,"url":"https://github.com/selmasaltik/react-forms","last_synced_at":"2025-04-08T22:41:49.284Z","repository":{"id":258017980,"uuid":"873284327","full_name":"selmasaltik/react-forms","owner":"selmasaltik","description":"Working with Forms \u0026 User Input /// What I learned from \"React - The Complete Guide 2024 (incl. Next.js, Redux) - Academind by Maximilian Schwarzmüller\"","archived":false,"fork":false,"pushed_at":"2024-10-16T17:10:09.000Z","size":134,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T17:54:59.840Z","etag":null,"topics":["form-submission","formdata","formdata-object","forms","input-validation","react","react-custom-hooks","react-forms","third-party-libraries"],"latest_commit_sha":null,"homepage":"https://react-forms-mu-wheat.vercel.app","language":"JavaScript","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/selmasaltik.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-15T22:55:46.000Z","updated_at":"2024-10-16T17:14:34.000Z","dependencies_parsed_at":"2024-10-17T10:05:25.340Z","dependency_job_id":null,"html_url":"https://github.com/selmasaltik/react-forms","commit_stats":null,"previous_names":["selmasaltik/react-forms"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selmasaltik%2Freact-forms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selmasaltik%2Freact-forms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selmasaltik%2Freact-forms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selmasaltik%2Freact-forms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/selmasaltik","download_url":"https://codeload.github.com/selmasaltik/react-forms/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247941705,"owners_count":21022035,"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":["form-submission","formdata","formdata-object","forms","input-validation","react","react-custom-hooks","react-forms","third-party-libraries"],"created_at":"2024-12-22T12:47:51.843Z","updated_at":"2025-04-08T22:41:49.264Z","avatar_url":"https://github.com/selmasaltik.png","language":"JavaScript","readme":"# Working with Forms \u0026 User Input\n***It’s Trickier Than It Might Seem***\n\n- What’s **Difficult** About Forms?\n- Handling **Form Submission** \u0026 **Validating** User Input\n- Using **Built-in** Form Features\n- Building **Custom** Solutions\n\n**What’s So Difficult?**\n\n**\u003cins\u003eForm Submission\u003c/ins\u003e**\n\n- Handling submission is relatively ***easy***\n- Entered values can be managed via ***state***\n- Alternatively, they can be extracted via ***refs***\n- Or via ***FormData*** and native browser features\n\n**\u003cins\u003eInput Validation\u003c/ins\u003e**\n\n- Providing a good user experience is ***tricky***\n- You can ***validate*** on every ***keystroke*** → errors may be shown ***too early***\n- You can ***validate*** on ***lost focus*** → errors may be shown ***too long***\n- You can ***validate*** on ***form submission*** → errors may be shown ***too late***\n\n**Using Third-Party Form Libraries**\n\n- [React Hook Form - performant, flexible and extensible form library](https://react-hook-form.com/)\n\n- [React Form Library | Getting Started Guide](https://surveyjs.io/form-library/documentation/get-started-react)\n\n- [Formik](https://formik.org/)\n\n**Resources**\n\n- [FormData - Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/FormData)\n\n- [Using FormData Objects - Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest_API/Using_FormData_Objects)\n\n- [FormData](https://javascript.info/formdata)\n\n- [Client-side form validation - Learn web development | MDN](https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation)\n\n- [Form on React: Best Practices](https://daily.dev/blog/form-on-react-best-practices)\n\n- [Comparing React Form Libraries: SurveyJS, Formik, React Hook Form, React Final Form And Unform — Smashing Magazine](https://www.smashingmagazine.com/2023/02/comparing-react-form-libraries/)\n\n- [Top React Form Libraries for Efficient Form Creation](https://dev.to/femi_akinyemi/top-10-react-form-libraries-for-efficient-form-creation-hp2)\n\n- [5 Best Libraries to Develop React.js Forms 2024](https://dev.to/ansonch/5-best-libraries-to-develop-reactjs-forms-2024-49k3)\n\n- [8 Best React Form Libraries for Developers [2024] | Geekflare](https://geekflare.com/best-react-form-libraries/)\n\n- [Top 5 React Form Libraries for Developers](https://www.wearedevelopers.com/magazine/react-form-libraries)\n\n- [React Hook Form vs Formik - Comparing the most popular React form libraries | Refine](https://refine.dev/blog/react-hook-form-vs-formik/#introduction)\n\n- [React Hook Form vs Formik - 2024 Comparision](https://www.digitalogy.co/blog/react-hook-form-vs-formik/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselmasaltik%2Freact-forms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fselmasaltik%2Freact-forms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselmasaltik%2Freact-forms/lists"}