{"id":23403439,"url":"https://github.com/selmasaltik/react-custom-hooks","last_synced_at":"2026-04-11T08:03:59.219Z","repository":{"id":257992533,"uuid":"870922761","full_name":"selmasaltik/react-custom-hooks","owner":"selmasaltik","description":"Building Custom React Hooks /// 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-15T22:36:57.000Z","size":4363,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-14T17:55:04.445Z","etag":null,"topics":["react","react-custom-hooks","react-hooks"],"latest_commit_sha":null,"homepage":"https://react-custom-hooks.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-10T23:19:12.000Z","updated_at":"2024-10-15T22:37:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"92d8a83f-846b-46b0-8bce-0ea5328ffe3e","html_url":"https://github.com/selmasaltik/react-custom-hooks","commit_stats":null,"previous_names":["selmasaltik/react-custom-hooks"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selmasaltik%2Freact-custom-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selmasaltik%2Freact-custom-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selmasaltik%2Freact-custom-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/selmasaltik%2Freact-custom-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/selmasaltik","download_url":"https://codeload.github.com/selmasaltik/react-custom-hooks/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247941706,"owners_count":21022036,"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":["react","react-custom-hooks","react-hooks"],"created_at":"2024-12-22T12:47:54.242Z","updated_at":"2026-04-11T08:03:54.200Z","avatar_url":"https://github.com/selmasaltik.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Custom Hooks\n***Creating \u0026 Using Custom React Hooks***\n\n- Repetition: **Rules of Hooks**\n- **Why** Custom Hooks?\n- **Creating** Custom Hooks\n- **Using** Custom Hooks\n\n**Rules of Hooks**\n\n1. **Only call Hooks *inside of Component or Other Hook Functions***\n    - React Hooks must not be called outside of React component functions or other Hook functions\n2. **Only call Hooks *on the top level***\n    - React Hooks must not be called in nested code statements (e.g., inside of if-statements)\n  \n***Resources***\n- [Building Your Own Hooks](https://legacy.reactjs.org/docs/hooks-custom.html)\n- [Reusing Logic with Custom Hooks](https://react.dev/learn/reusing-logic-with-custom-hooks)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselmasaltik%2Freact-custom-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fselmasaltik%2Freact-custom-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fselmasaltik%2Freact-custom-hooks/lists"}