{"id":18475927,"url":"https://github.com/mariuslundgard/react-opstore","last_synced_at":"2026-04-21T05:31:25.842Z","repository":{"id":70368627,"uuid":"87727962","full_name":"mariuslundgard/react-opstore","owner":"mariuslundgard","description":"React bindings for opstore.","archived":false,"fork":false,"pushed_at":"2017-12-02T12:26:57.000Z","size":206,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-13T15:19:22.513Z","etag":null,"topics":["immutable-datastructures","javascript","react","react-bindings","state-management","store"],"latest_commit_sha":null,"homepage":"","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/mariuslundgard.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-09T17:56:34.000Z","updated_at":"2017-11-27T19:20:40.000Z","dependencies_parsed_at":"2023-02-24T11:30:22.905Z","dependency_job_id":null,"html_url":"https://github.com/mariuslundgard/react-opstore","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/mariuslundgard/react-opstore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariuslundgard%2Freact-opstore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariuslundgard%2Freact-opstore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariuslundgard%2Freact-opstore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariuslundgard%2Freact-opstore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mariuslundgard","download_url":"https://codeload.github.com/mariuslundgard/react-opstore/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mariuslundgard%2Freact-opstore/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32078726,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T02:38:07.213Z","status":"ssl_error","status_checked_at":"2026-04-21T02:38:06.559Z","response_time":128,"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":["immutable-datastructures","javascript","react","react-bindings","state-management","store"],"created_at":"2024-11-06T10:35:43.915Z","updated_at":"2026-04-21T05:31:25.800Z","avatar_url":"https://github.com/mariuslundgard.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-opstore\n\nReact bindings for [`opstore`](https://github.com/mariuslundgard/opstore).\n\n```sh\nnpm install react-opstore\n```\n\n[![build status](https://img.shields.io/travis/mariuslundgard/react-opstore/master.svg?style=flat-square)](https://travis-ci.org/mariuslundgard/react-opstore)\n[![coverage status](https://img.shields.io/coveralls/mariuslundgard/react-opstore/master.svg?style=flat-square)](https://coveralls.io/github/mariuslundgard/react-opstore?branch=master)\n[![npm version](https://img.shields.io/npm/v/react-opstore.svg?style=flat-square)](https://www.npmjs.com/package/react-opstore)\n\n\u003e DISCLAIMER: `react-opstore` is inspired by [`react-redux`](https://github.com/reactjs/react-redux).\n\n## Usage\n\n```js\nimport {connect, Provider} from 'react-opstore'\nimport {createStore} from 'opstore'\nimport React from 'react'\nimport {render} from 'react-dom'\n\nconst Counter = ({count}) =\u003e (\n  \u003cdiv className=\"counter\"\u003e\n    \u003cbutton onClick={count.decr}\u003e-\u003c/button\u003e\n    \u003cspan\u003e{count.get()}\u003c/span\u003e\n    \u003cbutton onClick={count.incr}\u003e+\u003c/button\u003e\n  \u003c/div\u003e\n)\n\nconst mapStoreToProps = store =\u003e ({\n  count: store.ref('count')\n})\n\nconst ConnectedCounter = connect(mapStoreToProps)(Counter)\n\nconst store = createStore({count: 0})\n\nrender(\n  \u003cProvider store={store}\u003e\n    \u003cConnectedCounter /\u003e\n  \u003c/Provider\u003e,\n  document.body\n)\n```\n\n## License\n\nMIT © [Marius Lundgård](https://mariuslundgard.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmariuslundgard%2Freact-opstore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmariuslundgard%2Freact-opstore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmariuslundgard%2Freact-opstore/lists"}