{"id":17187020,"url":"https://github.com/ceyhun/react-high-timer","last_synced_at":"2026-05-08T04:40:47.140Z","repository":{"id":57333392,"uuid":"101481229","full_name":"ceyhun/react-high-timer","owner":"ceyhun","description":"A higher-order React timer component","archived":false,"fork":false,"pushed_at":"2017-08-31T09:04:15.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-05-21T04:53:08.327Z","etag":null,"topics":["higher-order-component","react","react-native","timer"],"latest_commit_sha":null,"homepage":null,"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/ceyhun.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":"2017-08-26T11:19:08.000Z","updated_at":"2017-10-06T10:45:44.000Z","dependencies_parsed_at":"2022-08-24T20:41:58.946Z","dependency_job_id":null,"html_url":"https://github.com/ceyhun/react-high-timer","commit_stats":null,"previous_names":["ceyhuno/react-high-timer"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceyhun%2Freact-high-timer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceyhun%2Freact-high-timer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceyhun%2Freact-high-timer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceyhun%2Freact-high-timer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ceyhun","download_url":"https://codeload.github.com/ceyhun/react-high-timer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ceyhun%2Freact-high-timer/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259198001,"owners_count":22820153,"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":["higher-order-component","react","react-native","timer"],"created_at":"2024-10-15T01:04:59.844Z","updated_at":"2026-05-08T04:40:42.092Z","avatar_url":"https://github.com/ceyhun.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-high-timer\nA higher-order React timer component\n\nYou can replace your calls to `setTimeout(fn, 500)` with `this.props.setTimeout(fn, 500)` and everything will be properly cleaned up for you when the component unmounts.\n\n## Installation\n\n```sh\nnpm i react-high-timer\n```\n\n## Usage\n\n```js\nimport * as React from 'react';\nimport { TimerProps, withTimer } from 'react-high-timer';\n\nexport class MyComponent extends React.Component\u003cPropsOfMyComponent \u0026 TimerProps, {}\u003e {\n  componentDidMount() {\n    this.props.setInterval(() =\u003e {\n      console.log('I do not leak!');\n    }, 1000);\n  }\n}\n\nexport default withTimer(MyComponent);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceyhun%2Freact-high-timer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fceyhun%2Freact-high-timer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fceyhun%2Freact-high-timer/lists"}