{"id":19345539,"url":"https://github.com/future-team/gfs-redux-bind-react","last_synced_at":"2026-06-13T13:32:19.595Z","repository":{"id":57250770,"uuid":"76619445","full_name":"future-team/gfs-redux-bind-react","owner":"future-team","description":"redux react 两者建立关系","archived":false,"fork":false,"pushed_at":"2017-11-15T09:04:17.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-02-08T11:45:46.149Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/future-team.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-12-16T03:54:23.000Z","updated_at":"2016-12-27T03:02:16.000Z","dependencies_parsed_at":"2022-08-24T16:52:05.119Z","dependency_job_id":null,"html_url":"https://github.com/future-team/gfs-redux-bind-react","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/future-team%2Fgfs-redux-bind-react","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Fgfs-redux-bind-react/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Fgfs-redux-bind-react/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/future-team%2Fgfs-redux-bind-react/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/future-team","download_url":"https://codeload.github.com/future-team/gfs-redux-bind-react/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240452172,"owners_count":19803578,"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":[],"created_at":"2024-11-10T04:06:55.927Z","updated_at":"2026-06-13T13:32:14.574Z","avatar_url":"https://github.com/future-team.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gfs-redux-bind-react\nbind react with redux \n\n## Usage\nthe `BindReact` component must have properties are `module` and `reducers`\n- `module` is a `react` component\n- `reducers` is a describe for action, normally it have a `fetching` props\n\nthe `devTools`, `middleware` are optional\n- `devTools` to set the react-dev-tools\n- `middleware` add `react-redux` middleware for this component\n\nthe following is full demo to describe how to use this, the detail please clone the code and run command \n```bash\n$ npm run test\n```\n\n```javascript\nimport React, { Component ,PropTypes} from 'react';\nimport {render} from \"react-dom\";\nimport {BindReact} from 'gfs-redux-bind-react'\nimport Tools from 'gfs-redux-bind-react/lib/Tools'\nimport App from './container.jsx'\nimport * as reducers from '../reducers/index.es6';\nimport {LoadingBarComponent, Connect} from 'gfs-loadingbar/lib/index.react'\nimport {fetching} from 'gfs-loadingbar/lib/react/fetching'\nimport FetchMiddleware from 'gfs-loadingbar/lib/react/FetchMiddleware'\nimport createLogger from 'redux-logger'\nconst logger = createLogger()\n\n//判断执行dev环境\nrender(\n    \u003cBindReact module={App} reducers={{...reducers, fetching}} middleware={[FetchMiddleware, logger]} DevTools={Tools}\u003e\n        \u003cConnect\u003e\n            \u003cLoadingBarComponent /\u003e\n        \u003c/Connect\u003e\n    \u003c/BindReact\u003e,\n    document.getElementById('root')\n);\n```\n## Developer\n\n```bash\n# test\t\n$ npm run test\t\n# build\t\n$ npm run build\t\n# run demo\t\n$ npm start\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuture-team%2Fgfs-redux-bind-react","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffuture-team%2Fgfs-redux-bind-react","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffuture-team%2Fgfs-redux-bind-react/lists"}