{"id":23679543,"url":"https://github.com/shiponcs/reactjs-hooks-with-elaborate-use-cases","last_synced_at":"2026-04-17T05:03:24.637Z","repository":{"id":42872360,"uuid":"257867365","full_name":"shiponcs/reactjs-hooks-with-elaborate-use-cases","owner":"shiponcs","description":"This repo shows many use cases of almost all ReactJS hooks with a few explanation as a comment to particular source file.","archived":false,"fork":false,"pushed_at":"2023-01-06T04:00:34.000Z","size":1180,"stargazers_count":3,"open_issues_count":11,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-29T08:58:01.897Z","etag":null,"topics":["hooks-api","hooks-api-react","react-hooks","reactjs"],"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/shiponcs.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-04-22T10:26:39.000Z","updated_at":"2023-03-09T02:50:34.000Z","dependencies_parsed_at":"2023-02-05T06:46:26.164Z","dependency_job_id":null,"html_url":"https://github.com/shiponcs/reactjs-hooks-with-elaborate-use-cases","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shiponcs/reactjs-hooks-with-elaborate-use-cases","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiponcs%2Freactjs-hooks-with-elaborate-use-cases","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiponcs%2Freactjs-hooks-with-elaborate-use-cases/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiponcs%2Freactjs-hooks-with-elaborate-use-cases/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiponcs%2Freactjs-hooks-with-elaborate-use-cases/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shiponcs","download_url":"https://codeload.github.com/shiponcs/reactjs-hooks-with-elaborate-use-cases/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shiponcs%2Freactjs-hooks-with-elaborate-use-cases/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31915900,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-16T18:22:33.417Z","status":"online","status_checked_at":"2026-04-17T02:00:06.879Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["hooks-api","hooks-api-react","react-hooks","reactjs"],"created_at":"2024-12-29T17:43:41.767Z","updated_at":"2026-04-17T05:03:24.620Z","avatar_url":"https://github.com/shiponcs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# reactjs-hooks-with-elaborate-use-cases\n\n### It contains almost all of _reactjs hooks_ from basic to advance\n\n- **useState**\n- **useEffeect**\n- **useCallback**\n- **useContext**\n- **useRef**\n- **useMemo**\n- **useReducer**\n- **useImperativeHandle**\n\nFor good coupling, this repo also contains some use cases of\n\n- createContext\n- memo\n- createRef\n- forwardRef (according to _reactjs docs_, \"useImperativeHandle hook should be used with forwardRef\")\n\nI took many ideas to arrange this from btholt's https://github.com/btholt/react-hooks-examples/tree/master/ and added more use cases with a bit explanation\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshiponcs%2Freactjs-hooks-with-elaborate-use-cases","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshiponcs%2Freactjs-hooks-with-elaborate-use-cases","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshiponcs%2Freactjs-hooks-with-elaborate-use-cases/lists"}