{"id":24054746,"url":"https://github.com/sumgwork/react-custom-hooks","last_synced_at":"2025-11-19T21:04:04.082Z","repository":{"id":39122033,"uuid":"264896407","full_name":"sumgwork/react-custom-hooks","owner":"sumgwork","description":"Custom react hooks","archived":false,"fork":false,"pushed_at":"2023-01-06T06:15:05.000Z","size":2795,"stargazers_count":1,"open_issues_count":40,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T22:24:06.215Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/sumgwork.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":"2020-05-18T09:49:19.000Z","updated_at":"2023-03-09T03:15:35.000Z","dependencies_parsed_at":"2023-02-05T12:30:49.932Z","dependency_job_id":null,"html_url":"https://github.com/sumgwork/react-custom-hooks","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/sumgwork%2Freact-custom-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumgwork%2Freact-custom-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumgwork%2Freact-custom-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sumgwork%2Freact-custom-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sumgwork","download_url":"https://codeload.github.com/sumgwork/react-custom-hooks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240840048,"owners_count":19866164,"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":[],"created_at":"2025-01-09T03:49:45.936Z","updated_at":"2025-11-19T21:04:04.052Z","avatar_url":"https://github.com/sumgwork.png","language":"JavaScript","readme":"# react-custom-hooks\n\n\u003e Useful list of custom React hooks\n\n[![NPM](https://img.shields.io/npm/v/@sgovil/react-custom-hooks)](https://www.npmjs.com/package/@sgovil/react-custom-hooks)\n[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n[![demo site](https://img.shields.io/badge/demo-site-green)](https://sumgwork.github.io/react-custom-hooks/)\n\n## Install\n\n```bash\nnpm install --save @sgovil/react-custom-hooks\n```\n\n## Usage\n\n```jsx\nimport React from \"react\";\nimport useFetch from \"@sgovil/react-custom-hooks\";\n\nexport default function App() {\n  const [response, error, loading] = useFetch(\n    \"https://jsonplaceholder.typicode.com/todos\"\n  );\n  return (\n    \u003cdiv\u003e\n      \u003ch1\u003eReact Custom Hooks\u003c/h1\u003e\n\n      {loading \u0026\u0026 \u003cdiv\u003eLoading...\u003c/div\u003e}\n      {!loading \u0026\u0026 error \u0026\u0026 \u003cdiv\u003e{error.message}\u003c/div\u003e}\n      {!loading \u0026\u0026 !error \u0026\u0026 response \u0026\u0026 (\n        \u003cdiv\u003e\n          \u003ch2\u003eFetch Complete\u003c/h2\u003e\n          \u003cpre\u003e{JSON.stringify(response, undefined, 2)}\u003c/pre\u003e\n        \u003c/div\u003e\n      )}\n    \u003c/div\u003e\n  );\n}\n```\n\n## License\n\nMIT © [sumgwork](https://github.com/sumgwork)\n\n---\n\nThis hook is created using [create-react-hook](https://github.com/hermanya/create-react-hook).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumgwork%2Freact-custom-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsumgwork%2Freact-custom-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsumgwork%2Freact-custom-hooks/lists"}