{"id":14969976,"url":"https://github.com/ufukbakan/useformdata-hook","last_synced_at":"2026-02-28T00:05:33.472Z","repository":{"id":63942400,"uuid":"571636395","full_name":"ufukbakan/useFormData-hook","owner":"ufukbakan","description":"React hook for uncontrolled input forms.","archived":false,"fork":false,"pushed_at":"2023-01-16T10:20:00.000Z","size":56,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-12-18T06:24:24.412Z","etag":null,"topics":["controlled-components","form","forms","hook","hooks","input","input-field","javascript","react","reactjs","semicontrolled-component","typescript","uncontrolled-components"],"latest_commit_sha":null,"homepage":"","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/ufukbakan.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}},"created_at":"2022-11-28T15:00:58.000Z","updated_at":"2024-02-01T10:47:58.000Z","dependencies_parsed_at":"2023-02-10T02:31:08.150Z","dependency_job_id":null,"html_url":"https://github.com/ufukbakan/useFormData-hook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ufukbakan%2FuseFormData-hook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ufukbakan%2FuseFormData-hook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ufukbakan%2FuseFormData-hook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ufukbakan%2FuseFormData-hook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ufukbakan","download_url":"https://codeload.github.com/ufukbakan/useFormData-hook/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240063929,"owners_count":19742227,"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":["controlled-components","form","forms","hook","hooks","input","input-field","javascript","react","reactjs","semicontrolled-component","typescript","uncontrolled-components"],"created_at":"2024-09-24T13:42:47.420Z","updated_at":"2026-02-28T00:05:33.443Z","avatar_url":"https://github.com/ufukbakan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003euseFormData\u003c/h1\u003e\n\u003cdiv align=\"center\"\u003eGet and validate form data without converting each input to a controlled one.\n\n\n![Statements](https://img.shields.io/badge/statements-98.64%25-brightgreen.svg?style=flat) ![Branches](https://img.shields.io/badge/branches-84.26%25-yellow.svg?style=flat) ![Functions](https://img.shields.io/badge/functions-100%25-brightgreen.svg?style=flat) ![Lines](https://img.shields.io/badge/lines-98.52%25-brightgreen.svg?style=flat)\n\u003c/div\u003e\n\n## Simple usage\nThis hook will scan only one form. By default it is the first form in the page, but you can change it to any form by passsing an argument.\n```js\nimport useFormData from \"useformdata-hook\";\n\nexport default function App() {\n\n    const formData = useFormData();\n\n    return (\n        \u003cform\u003e\n            \u003cinput type='text' name='fullName' /\u003e\u003cbr/\u003e\n            \u003cinput type='date' name='birthdate' /\u003e\u003cbr/\u003e\n            \u003ctextarea name='comment'\u003e\n        \u003c/form\u003e\n    )\n}\n```\n## Advanced Usage\n\n```js\nimport { useRef } from \"react\";\nimport useFormData from \"useformdata-hook\";\n\nexport default function App() {\n\n    const formRef = useRef(null);\n    const formData = useFormData({form: formRef.current});\n\n    useEffect(()=\u003e{\n      // console.log(formData);\n      // Validation logic goes here\n    }, [formData])\n\n    return (\n        \u003cform ref={formRef}\u003e\n            \u003cinput type='text' name='fullName' /\u003e\n            \u003cinput type='date' name='birthdate' /\u003e\n        \u003c/form\u003e\n    )\n}\n```\nTypescript example provided [here](https://github.com/ufukbakan/useFormData-hook/tree/main/example)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fufukbakan%2Fuseformdata-hook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fufukbakan%2Fuseformdata-hook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fufukbakan%2Fuseformdata-hook/lists"}