{"id":15011789,"url":"https://github.com/developit/preact-redux","last_synced_at":"2025-04-12T22:21:27.893Z","repository":{"id":52376832,"uuid":"60229688","full_name":"developit/preact-redux","owner":"developit","description":":loop: Preact integration for Redux (no shim needed!)","archived":false,"fork":false,"pushed_at":"2020-01-21T20:57:08.000Z","size":292,"stargazers_count":287,"open_issues_count":16,"forks_count":26,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-04T01:24:48.040Z","etag":null,"topics":["preact","preact-components","redux"],"latest_commit_sha":null,"homepage":"https://npm.im/preact-redux","language":"JavaScript","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/developit.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":"2016-06-02T03:28:15.000Z","updated_at":"2025-02-11T21:32:39.000Z","dependencies_parsed_at":"2022-08-21T03:00:35.293Z","dependency_job_id":null,"html_url":"https://github.com/developit/preact-redux","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fpreact-redux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fpreact-redux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fpreact-redux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developit%2Fpreact-redux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developit","download_url":"https://codeload.github.com/developit/preact-redux/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248638584,"owners_count":21137685,"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":["preact","preact-components","redux"],"created_at":"2024-09-24T19:41:42.637Z","updated_at":"2025-04-12T22:21:27.861Z","avatar_url":"https://github.com/developit.png","language":"JavaScript","readme":"# preact-redux\n\n[![NPM](http://img.shields.io/npm/v/preact-redux.svg)](https://www.npmjs.com/package/preact-redux)\n[![travis-ci](https://travis-ci.org/developit/preact-redux.svg)](https://travis-ci.org/developit/preact-redux)\n\nWraps [react-redux] up for [Preact] (8.x and prior), without using [preact-compat](https://github.com/developit/preact-compat). Think of this as a version of `react-redux` that is pre-aliased to use preact in place of React.\n\n**See [preact-redux-example](https://github.com/developit/preact-redux-example):** _a full working example of `redux` + `preact` using `preact-redux`!_\n\n\u003e 💁‍ **Compatibility Note:**\n\u003e\n\u003e If you're using Preact X (preact@10+), please use the official [react-redux] library.\n\n---\n\n\n### Usage Example\n\n\u003e This is a contrived example. Please refer to Redux's [Usage with React](http://redux.js.org/docs/basics/UsageWithReact.html) documentation for details on how to work with Redux from Preact.\n\n```js\nimport { Provider, connect } from 'preact-redux';\nimport { h, render } from 'preact';\n\nconst Main = () =\u003e (\n\t\u003cProvider store={store}\u003e\n\t\t\u003cChild /\u003e\n\t\u003c/Provider\u003e\n);\n\nconst Child = connect(\n\tstate =\u003e state\n)( ({ text, setText }) =\u003e (\n\t\u003cinput value={text} onInput={e =\u003e setText(e.target.value)} /\u003e\n) );\n\nrender(\u003cMain /\u003e, document.body);\n```\n\n\n---\n\n\n### License\n\n[MIT]\n\n\n[react-redux]: https://github.com/reactjs/react-redux\n[Preact]: https://github.com/developit/preact\n[MIT]: http://choosealicense.com/licenses/mit/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopit%2Fpreact-redux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevelopit%2Fpreact-redux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopit%2Fpreact-redux/lists"}