{"id":26164719,"url":"https://github.com/optum/react-hooks","last_synced_at":"2026-03-07T20:01:28.562Z","repository":{"id":179519854,"uuid":"630057176","full_name":"Optum/react-hooks","owner":"Optum","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-12T20:02:59.000Z","size":62747,"stargazers_count":4,"open_issues_count":4,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-05-12T20:50:01.635Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Optum.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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}},"created_at":"2023-04-19T15:18:52.000Z","updated_at":"2025-05-12T19:45:11.000Z","dependencies_parsed_at":"2024-03-25T14:57:30.921Z","dependency_job_id":"0343448a-fdf0-43b4-a97a-45bcaacf66cd","html_url":"https://github.com/Optum/react-hooks","commit_stats":null,"previous_names":["optum/react-hooks"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Optum/react-hooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optum%2Freact-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optum%2Freact-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optum%2Freact-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optum%2Freact-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Optum","download_url":"https://codeload.github.com/Optum/react-hooks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Optum%2Freact-hooks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30229585,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T19:01:10.287Z","status":"ssl_error","status_checked_at":"2026-03-07T18:59:58.103Z","response_time":53,"last_error":"SSL_read: 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":[],"created_at":"2025-03-11T15:39:56.267Z","updated_at":"2026-03-07T20:01:28.549Z","avatar_url":"https://github.com/Optum.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv id=\"top\"\u003e\u003c/div\u003e\n\n\u003c!-- NOTES --\u003e\n\u003c!--\n*** Individual sections below can be removed if not needed\n--\u003e\n\n\u003c!-- PROJECT SHIELDS --\u003e\n\u003c!--\n*** We are using markdown \"reference style\" links for readability.\n*** Reference links are enclosed in brackets [ ] instead of parentheses ( ).\n*** See the bottom of this document for the declaration of the reference variables\n*** for contributors-url, forks-url, etc. This is an optional, concise syntax you may use.\n*** https://www.markdownguide.org/basic-syntax/#reference-style-links\n--\u003e\n[![Contributors][contributors-shield]][contributors-url]\n[![Forks][forks-shield]][forks-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Issues][issues-shield]][issues-url]\n[![MIT License][license-shield]][license-url]\n[![LinkedIn][linkedin-shield]][linkedin-url]\n\n\n\n\u003c!-- PROJECT LOGO --\u003e\n\u003cbr /\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://github.com/optum/react-hooks\"\u003e\n    \u003cimg src=\"images/logo.png\" alt=\"Logo\" width=\"80\" height=\"80\"\u003e\n  \u003c/a\u003e\n\n\u003ch3 align=\"center\"\u003ereact-hooks\u003c/h3\u003e\n\n  \u003cp align=\"center\"\u003e\n    A reusable set of React hooks.\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/optum/react-hooks\"\u003e\u003cstrong\u003eExplore the docs »\u003c/strong\u003e\u003c/a\u003e\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n    \u003ca href=\"https://github.com/optum/react-hooks/issues\"\u003eReport Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/optum/react-hooks/issues\"\u003eRequest Feature\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n\n\n\u003c!-- TABLE OF CONTENTS --\u003e\n\u003cdetails\u003e\n  \u003csummary\u003eTable of Contents\u003c/summary\u003e\n  \u003col\u003e\n    \u003cli\u003e\n      \u003ca href=\"#about-the-project\"\u003eAbout The Project\u003c/a\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"#built-with\"\u003eBuilt With\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\n      \u003ca href=\"#getting-started\"\u003eGetting Started\u003c/a\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"#prerequisites\"\u003ePrerequisites\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#roadmap\"\u003eRoadmap\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#contributing\"\u003eContributing\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#license\"\u003eLicense\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#contact\"\u003eContact\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#acknowledgments\"\u003eAcknowledgments\u003c/a\u003e\u003c/li\u003e\n  \u003c/ol\u003e\n\u003c/details\u003e\n\n\n\n\u003c!-- ABOUT THE PROJECT --\u003e\n## About The Project\n\nThis library contains various reusable hooks built and currently being used throughout [Optum](https://optum.com). They were created with the goal of simplifying otherwise complex react procedures and concepts, such as state management of asynchronous data, accessibility, etc. Please feel free to explore this repository and use, contribute, and add to these hooks!\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- GETTING STARTED --\u003e\n## Getting Started\nRun one of the following commands to add React Hooks to your project: \n\n**npm**\n```shell\nnpm install @optum/react-hooks\n```\n\nor \n\n\n**yarn**\n```shell\nyarn add @optum/react-hooks\n```\n\n\n### Prerequisites\n#### Peer dependencies\nPlease note that [react](www.npmjs.com/package/react) and [react-dom](www.npmjs.com/package/react-dom) are peer dependencies, and should be installed _before_ installing React Hooks\n\n```json\n\"peerDependencies\": {\n  \"react\": \"^17.0.0 || ^18.0.0\",\n},\n```\n#### Package Manager\nHave desired javascript package mananger installed on your machine:\n\n* [yarn](https://classic.yarnpkg.com/lang/en/docs/install/#mac-stable)\n  * preferred but not required\n\nor \n* [npm](https://www.npmjs.com/package/npm)\n\n\n_**Optional**_\n* [yalc](https://github.com/wclr/yalc) \n  * used for testing package locally\n\n\u003cdiv id='test-locally'\u003e\n\n### Testing Changes Locally\nIf you are in the process of making changes to this repo and wish to test them, or simply wish to playground with our hooks:\n\n1. Have a working react project\n2. Have [yalc](https://github.com/wclr/yalc) installed globally\n```sh\nyarn global add yalc\n```\n3. Inside `react-hooks` directory, publish package to yalc store\n```sh\nyalc publish\n```\n4. Inside of directory of your project, add package\n```sh\nyalc add react-hooks\n```\n5. As you make changes inside of `react-hooks`, continue publishing to store, as explained in step 3.\n6. Update yalc store inside of project directory after each new publish (this may require stopping running instances of project)\n```sh\nyalc update\n```\n7. Once finished, remove yalc package from project directory\n```sh\nyalc remove react-hooks\n```\nor\n```sh\nyalc remove --all\n```\n(if you wish to remove other yalc packages)\n\n\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- USAGE EXAMPLES --\u003e\n## Usage\nPlease refer to directories inside of `/hooks` for usages of individual hooks. \n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\n\n\u003c!-- ROADMAP --\u003e\n## Roadmap\n\u003c!-- \n- [] Feature 1\n- [] Feature 2\n- [] Feature 3\n    - [] Nested Feature --\u003e\nSee the [open issues](https://github.com/optum/react-hooks/issues) for a full list of proposed features (and known issues).\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\n\n\u003c!-- CONTRIBUTING --\u003e\n## Contributing\n\nContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\nIf you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag \"enhancement\".\nDon't forget to give the project a star! Thanks again!\n\n1. Fork the Project\n2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the Branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\n\n\u003c!-- LICENSE --\u003e\n## License\n\nDistributed under the Apache 2.0 License. See `LICENSE.txt` for more information.\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\n\n\u003c!-- MAINTAINERS --\u003e\n## Maintainers\n\n- Niels Peschel\n  - GitHub: [NielsJPeschel](https://github.com/NielsJPeschel)\n  - Email: peschel.niels@gmail.com\n- Nicholas Thurow\n  - GitHub: [nthurow](https://github.com/nthurow)\n  \u003c!-- - Email: email2@email.com --\u003e\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- ACKNOWLEDGMENTS --\u003e\n\u003c!-- ## Acknowledgments\n\n* []()\n* []()\n* []()\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e --\u003e\n\n\n\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES --\u003e\n\u003c!-- https://www.markdownguide.org/basic-syntax/#reference-style-links --\u003e\n[contributors-shield]: https://img.shields.io/github/contributors/optum/react-hooks.svg?style=for-the-badge\n[contributors-url]: https://github.com/optum/react-hooks/graphs/contributors\n[forks-shield]: https://img.shields.io/github/forks/optum/react-hooks.svg?style=for-the-badge\n[forks-url]: https://github.com/optum/react-hooks/network/members\n[stars-shield]: https://img.shields.io/github/stars/optum/react-hooks.svg?style=for-the-badge\n[stars-url]: https://github.com/optum/react-hooks/stargazers\n[issues-shield]: https://img.shields.io/github/issues/optum/react-hooks.svg?style=for-the-badge\n[issues-url]: https://github.com/optum/react-hooks/issues\n[license-shield]: https://img.shields.io/github/license/optum/react-hooks.svg?style=for-the-badge\n[license-url]: https://github.com/optum/react-hooks/blob/master/LICENSE.txt\n[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge\u0026logo=linkedin\u0026colorB=555\n[linkedin-url]: https://linkedin.com/in/niels-peschel\n[product-screenshot]: images/screenshot.png\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptum%2Freact-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foptum%2Freact-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foptum%2Freact-hooks/lists"}