{"id":20307131,"url":"https://github.com/jadbox/rxhooks_examples","last_synced_at":"2026-05-31T22:32:02.518Z","repository":{"id":142019151,"uuid":"169196564","full_name":"jadbox/rxhooks_examples","owner":"jadbox","description":"React Hook support for Observable Streams","archived":false,"fork":false,"pushed_at":"2019-02-16T00:08:13.000Z","size":176,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-04T07:32:09.024Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/jadbox/rxhooks","language":"TypeScript","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/jadbox.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-05T05:48:48.000Z","updated_at":"2019-03-27T10:14:48.000Z","dependencies_parsed_at":"2023-07-07T07:45:41.117Z","dependency_job_id":null,"html_url":"https://github.com/jadbox/rxhooks_examples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jadbox/rxhooks_examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jadbox%2Frxhooks_examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jadbox%2Frxhooks_examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jadbox%2Frxhooks_examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jadbox%2Frxhooks_examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jadbox","download_url":"https://codeload.github.com/jadbox/rxhooks_examples/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jadbox%2Frxhooks_examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33752286,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"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":[],"created_at":"2024-11-14T17:16:23.096Z","updated_at":"2026-05-31T22:32:02.510Z","avatar_url":"https://github.com/jadbox.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PROJECT MOVED\n\nProject moved to https://github.com/jadbox/rxhooks\n\n### Just Show Me the Code\n\n```javascript\nfunction ExampleUseRxState() {\n  const initialVal = 1;\n  const [count, signalCount] = useRxState(initialVal, \n    scan( (acc, x) =\u003e x+acc, 0) \n  );\n\n  const onClick = () =\u003e {\n    signalCount(1);\n  }\n  \n  return \u003c\u003e\n    \u003cbutton onClick={onClick}\u003eAdd 1\u003c/button\u003e\n    \u003cp\u003ecount {count}\u003c/p\u003e\n  \u003c/\u003e\n}\n\nfunction ExampleUseRx() {\n  const stream = (x) =\u003e interval(1000 * x);\n\n  const [speed, setSpeed] = useState(1);\n  const [count] = useRx( stream, speed );\n  \n  return \u003c\u003e\n    \u003cbutton onClick={() =\u003e setSpeed(speed+1)}\u003eMake slower via initialValue change\u003c/button\u003e\n    \u003cp\u003espeed {speed}{' '}|{' '}count {count}\u003c/p\u003e\n  \u003c/\u003e\n}\n\nclass App extends Component {\n\n  render() {\n    return (\n      \u003cdiv className=\"App\"\u003e\n        \u003cheader className=\"App-header\"\u003e\n          \u003cExampleUseRx/\u003e\n          \u003cbr/\u003e\n          \u003cExampleUseRxState/\u003e\n        \u003c/header\u003e\n      \u003c/div\u003e\n    );\n  }\n}\n\nexport default App;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjadbox%2Frxhooks_examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjadbox%2Frxhooks_examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjadbox%2Frxhooks_examples/lists"}