{"id":13741592,"url":"https://github.com/raxjs/rax-hooks","last_synced_at":"2025-05-16T05:31:14.331Z","repository":{"id":36459730,"uuid":"224867329","full_name":"raxjs/rax-hooks","owner":"raxjs","description":"🥳 Contains rax hooks that are used very frequently.","archived":false,"fork":false,"pushed_at":"2021-11-20T18:22:48.000Z","size":224,"stargazers_count":8,"open_issues_count":1,"forks_count":1,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-05-04T19:03:42.132Z","etag":null,"topics":["hooks","rax","rax-hooks"],"latest_commit_sha":null,"homepage":"https://github.com/alibaba/rax","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/raxjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-29T14:15:17.000Z","updated_at":"2023-03-25T01:12:52.000Z","dependencies_parsed_at":"2022-08-18T04:00:12.976Z","dependency_job_id":null,"html_url":"https://github.com/raxjs/rax-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/raxjs%2Frax-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raxjs%2Frax-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raxjs%2Frax-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/raxjs%2Frax-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/raxjs","download_url":"https://codeload.github.com/raxjs/rax-hooks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254384988,"owners_count":22062422,"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":["hooks","rax","rax-hooks"],"created_at":"2024-08-03T04:01:00.703Z","updated_at":"2025-05-16T05:31:09.319Z","avatar_url":"https://github.com/raxjs.png","language":"JavaScript","funding_links":[],"categories":["Rax"],"sub_categories":["Rax Tutorials"],"readme":"# Rax Hooks\n\u003ca href=\"https://travis-ci.com/raxjs/rax-hooks\"\u003e\u003cimg src=\"https://travis-ci.com/raxjs/rax-hooks.svg?branch=master\"\u003e\u003c/a\u003e\n\n🥳 Contains rax hooks that are used very frequently.\n\n## Component Life Cycle\n\n- [x] useMountedState: get component mount state\n\n- [x] useMounted: calls a function after the component is mounted\n\n- [x] useUnmount: calls a function when the component will unmount\n\n  \n\n## Side Effect\n\n- [x] useOnceEffect: run an effect only once\n\n- [x] useAsyncEffect: run an async effect\n\n- [x] useOnceAsyncEffect: run an async effect only once\n\n- [x] useFetch: makes isomorphic http requests\n\n- [x] usePromise: use promise in function component\n\n- [x] useImport: makes dynamic import component\n\n- [x] useInterval: makes a safe setTimeInterval effect\n\n- [x] useTimeout: makes a safe setTimeout effect\n\n- [x] useRouter: configure router in function component\n\n\n## State\n\n- [x] useCountdown: tracks state of count down\n\n- [ ] useStorage: tracks state of localstorage\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraxjs%2Frax-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fraxjs%2Frax-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fraxjs%2Frax-hooks/lists"}