{"id":19605132,"url":"https://github.com/a7ul/use-redux-hook","last_synced_at":"2025-04-27T19:32:47.121Z","repository":{"id":75754802,"uuid":"171263041","full_name":"a7ul/use-redux-hook","owner":"a7ul","description":"A simple react hook to get access to redux store","archived":false,"fork":false,"pushed_at":"2019-02-18T14:18:09.000Z","size":4,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T02:22:29.195Z","etag":null,"topics":["hooks","javascript","openlibrary","react","react-hook","redux"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/use-redux-hook","language":"JavaScript","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/a7ul.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-18T10:26:47.000Z","updated_at":"2020-04-27T02:36:22.000Z","dependencies_parsed_at":"2023-06-19T14:28:22.612Z","dependency_job_id":null,"html_url":"https://github.com/a7ul/use-redux-hook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a7ul%2Fuse-redux-hook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a7ul%2Fuse-redux-hook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a7ul%2Fuse-redux-hook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a7ul%2Fuse-redux-hook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a7ul","download_url":"https://codeload.github.com/a7ul/use-redux-hook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251196162,"owners_count":21550914,"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":["hooks","javascript","openlibrary","react","react-hook","redux"],"created_at":"2024-11-11T09:41:18.955Z","updated_at":"2025-04-27T19:32:47.091Z","avatar_url":"https://github.com/a7ul.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# use-redux-hook\n\n[![npm version](https://badge.fury.io/js/use-redux-hook.svg)](https://badge.fury.io/js/use-redux-hook)\n\n**A simple react hook to get access to redux store**\n\n# Pre-requisite\n\n**Needs:**\n\n- react \u003e 16.8,\n- react-redux \u003e 6.0.0\n\n# Use cases\n\nCurrently only way to get access to redux is via the connect HOC. There is no clean way to do it the hook way.\nThis module is a tiny hook that gives out redux store\n\n# Install\n\n```\nnpm install use-redux-hook\n```\n\nor\n\n```\nyarn add use-redux-hook\n```\n\n# Usage\n\n### Basic\n\n**Simple use case**\n\n```js\nimport React from \"react\";\nimport { useReduxStore } from \"use-redux-hook\";\n\nexport const ExampleReactComponent = () =\u003e {\n  const {getState, dispatch} = useReduxStore();\n  const { user } = getState();\n  return \u003cdiv\u003e Hello {user.name}\u003c/div\u003e;\n};\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa7ul%2Fuse-redux-hook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa7ul%2Fuse-redux-hook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa7ul%2Fuse-redux-hook/lists"}