{"id":46445444,"url":"https://github.com/ogs-gmbh/react-hooks","last_synced_at":"2026-04-08T14:00:43.062Z","repository":{"id":342017960,"uuid":"1170577002","full_name":"OGS-GmbH/react-hooks","owner":"OGS-GmbH","description":"Composable Hooks for React applications.","archived":false,"fork":false,"pushed_at":"2026-04-08T12:01:48.000Z","size":132,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-08T12:14:42.119Z","etag":null,"topics":["custom-hooks","hooks-library","react","react-hooks"],"latest_commit_sha":null,"homepage":"https://ogs-gmbh.github.io/react-hooks/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/OGS-GmbH.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-02T09:27:03.000Z","updated_at":"2026-04-08T12:01:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"038722b3-4ef1-4754-968c-d92b6b3abf42","html_url":"https://github.com/OGS-GmbH/react-hooks","commit_stats":null,"previous_names":["ogs-gmbh/react-hooks"],"tags_count":2,"template":false,"template_full_name":"OGS-GmbH/_ts-template","purl":"pkg:github/OGS-GmbH/react-hooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OGS-GmbH%2Freact-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OGS-GmbH%2Freact-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OGS-GmbH%2Freact-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OGS-GmbH%2Freact-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OGS-GmbH","download_url":"https://codeload.github.com/OGS-GmbH/react-hooks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OGS-GmbH%2Freact-hooks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31558386,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T10:21:54.569Z","status":"ssl_error","status_checked_at":"2026-04-08T10:21:38.171Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["custom-hooks","hooks-library","react","react-hooks"],"created_at":"2026-03-05T22:36:58.164Z","updated_at":"2026-04-08T14:00:43.054Z","avatar_url":"https://github.com/OGS-GmbH.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e _We're OGS, check out our work on [github.com/ogs-gmbh](https://github.com/ogs-gmbh)_\n\n# React Hooks\n\n_Composable Hooks for React applications._\n\n![Preview](./docs/preview.avif)\n\n\u003ca href=\"./LICENSE\" target=\"_blank\"\u003e\u003cimg alt=\"license badge\" src=\"https://img.shields.io/github/license/OGS-GmbH/react-hooks?color=0f434e\u0026logo=hackthebox\u0026logoColor=000000\u0026labelColor=ffffff\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/OGS-GmbH/react-hooks/actions/workflows/main-deploy.yml\" target=\"_blank\"\u003e\u003cimg alt=\"workflow badge\" src=\"https://img.shields.io/github/actions/workflow/status/OGS-GmbH/react-hooks/main-deploy.yml?color=0f434e\u0026logo=rocket\u0026logoColor=000000\u0026labelColor=ffffff\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://www.npmjs.com/package/@ogs-gmbh/react-hooks\" target=\"_blank\"\u003e\u003cimg alt=\"npm badge\" src=\"https://img.shields.io/npm/v/%40ogs-gmbh%2Freact-hooks?color=0f434e\u0026logo=npm\u0026logoColor=000000\u0026labelColor=ffffff\" /\u003e\u003c/a\u003e\n\n- **Easy to Set Up**\\\n  Simple configuration lets you use our hooks quickly.\n\n- **Hooks for everyone's needs**\\\n  Extensive collection of React hooks\n\n- **Type-Safe Integration**\\\n  Fully compatible with TypeScript.\n\n- **Composable and Scalable**\\\n  Designed for composability, allowing hooks to be combined seamlessly.\n\n## Getting Started\n\n\u003e [!IMPORTANT]\n\u003e We're offering an extensive API-Reference covered with in-depth usage examples of this project.\n\nTo get a starting point, simply refer to our documentation at [ogs-gmbh.github.io/react-hooks](https://ogs-gmbh.github.io/react-hooks).\n\n### Prerequisites\n\n- Node.js version 18 or higher\n- A package manager: e.g. npm, pnpm, ...\n\n### Installation\n\nUsing npm:\n\n```sh\n$ npm install @ogs-gmbh/react-hooks\n```\n\n\u003cdetails\u003e\n  \u003csummary\u003eUsing a different package managers?\u003c/summary\u003e\n  \u003cbr/\u003e\n  \n  Using yarn:\n  ```sh\n  $ pnpm add @ogs-gmbh/react-hooks\n  ```\n  \n  Using pnpm:\n  ```sh\n  $ pnpm add @ogs-gmbh/react-hooks\n  ```\n  \n  Using bun:\n  ```sh\n  $ bun add @ogs-gmbh/react-hooks\n  ```\n\n\u003c/details\u003e\n\n### Usage\n\nWe offer various React Hooks. Each React Hook shows its usage and is documented. Please check the list below:\n\n| Hook                                                                                                                 | Use-Case                                                           |\n| -------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------ |\n| [`useInitialize`](https://ogs-gmbh.github.io/react-hooks/reference/useInitialize/useInitialize)                      | Call only on immediate component render, not on subsequent updates |\n| [`useKey`](https://ogs-gmbh.github.io/react-hooks/reference/useKey/useKey)                                           | Detect Key-Events                                                  |\n| [`useLatencyBoundState`](https://ogs-gmbh.github.io/react-hooks/reference/useLatencyBoundState/useLatencyBoundState) | Like React's `useState`, but with delay                            |\n| [`useLazyEffect`](https://ogs-gmbh.github.io/react-hooks/reference/useLazyEffect/useLazyEffect)                      | Calling the effect only on updates, not on the first render        |\n| [`useMounted`](https://ogs-gmbh.github.io/react-hooks/reference/useMounted/useMounted)                               | Checking if the component is mounted                               |\n| [`useMountedEffect`](https://ogs-gmbh.github.io/react-hooks/reference/useMountedEffect/useMountedEffect)             | Calling the effect only when the component is mounted              |\n| [`useMountedState`](https://ogs-gmbh.github.io/react-hooks/reference/useMountedState/useMountedState)                | Checking if the component is mounted                               |\n| [`usePreviousState`](https://ogs-gmbh.github.io/react-hooks/reference/usePreviousState/usePreviousState)             | Getting the previous state value                                   |\n| [`usePromise`](https://ogs-gmbh.github.io/react-hooks/reference/usePromise/usePromise)                               | Handling promises                                                  |\n\n## License\n\nThe MIT License (MIT) - Please have a look at the [LICENSE file](./LICENSE) for more details.\n\n## Contributing\n\nContributions are always welcome and greatly appreciated. Whether you want to report a bug, suggest a new feature, or improve the documentation, your input helps make the project better for everyone.\n\nFeel free to submit a pull request, issue or feature request.\n\n### Issues and Feature Requests\n\nReporting an issue or creating a feature request is made by creating a new issue on this repository.\n\nYou can create a [new issue or feature request here](../../issues/new/choose).\n\n### Pull Requests\n\nGitHub offers a solid guideline for contributing to open source projects through pull requests, covering key practices. These best practices provide a reliable starting point for making effective contributions.\n\nYou can find the [guidelines here](https://docs.github.com/get-started/exploring-projects-on-github/contributing-to-a-project).\n\n### Code Of Conduct\n\nWe are committed to keeping a welcoming, inclusive, and respectful community for everyone. To help us achieve this, we kindly ask that you adhere to our [Code of Conduct](./CODE_OF_CONDUCT.md).\n\n## Disclaimer\n\nAll trademarks and registered trademarks mentioned are property of their respective owners and are used for identification purposes only. Use of these names does not imply endorsement or affiliation.\n\nThis project is a trademark of OGS Gesellschaft für Datenverarbeitung und Systemberatung mbH. The License does not grant rights to use the trademark without permission.\n\n---\n\n\u003ca href=\"https://www.ogs.de/en/\"\u003e\n  \u003cpicture\u003e\n    \u003csource\n      srcset=\"https://raw.githubusercontent.com/OGS-GmbH/.github/refs/tags/v1.0.0/docs/assets/logo/light.svg\"\n      media=\"(prefers-color-scheme: dark)\"\n    /\u003e\n    \u003cimg height=\"64\" alt=\"OGS Logo\" src=\"https://raw.githubusercontent.com/OGS-GmbH/.github/refs/tags/v1.0.0/docs/assets/logo/dark.svg\"\n  \u003c/picture\u003e\n\u003c/a\u003e\n\nGesellschaft für Datenverarbeitung und Systemberatung mbH\n\n[Imprint](https://www.ogs.de/en/imprint/) | [Contact](https://www.ogs.de/en/contact/) | [Careers](https://www.ogs.de/en/about-ogs/#Careers)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fogs-gmbh%2Freact-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fogs-gmbh%2Freact-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fogs-gmbh%2Freact-hooks/lists"}