{"_id":"redux-connect-standalone","_rev":"1-211eb441a914a807bb73eae1240e6ccd","name":"redux-connect-standalone","description":"HOC to allow you to use redux without the need of a single root provider","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"redux-connect-standalone","version":"0.0.1","description":"HOC to allow you to use redux without the need of a single root provider","main":"lib/index.js","module":"es/index.js","files":["dist","lib","src"],"keywords":["redux","react","react-redux","hoc"],"scripts":{"clean":"rimraf lib dist es coverage","lint":"eslint src test build","test":"cross-env BABEL_ENV=commonjs jest","test:watch":"yarn test -- --watch","test:cov":"yarn test -- --coverage","coveralls":"cat ./coverage/lcov.info | ./node_modules/.bin/coveralls","build:commonjs":"cross-env BABEL_ENV=commonjs babel src --out-dir lib","build:es":"cross-env BABEL_ENV=es babel src --out-dir es","build:umd":"cross-env BABEL_ENV=es NODE_ENV=development rollup -c -i src/index.js -o dist/redux-connect-standalone.js","build:umd:min":"cross-env BABEL_ENV=es NODE_ENV=production rollup -c -i src/index.js -o dist/redux-connect-standalone.min.js","build":"yarn run build:commonjs && yarn run build:es && yarn run build:umd && yarn run build:umd:min","prepare":"yarn run clean && yarn run lint && yarn test && yarn run build","examples:lint":"eslint examples"},"devDependencies":{"babel-cli":"^6.3.15","babel-core":"^6.3.15","babel-eslint":"^7.0.0","babel-jest":"^20.0.3","babel-plugin-check-es2015-constants":"^6.3.13","babel-plugin-external-helpers":"^6.22.0","babel-plugin-transform-es2015-arrow-functions":"^6.3.13","babel-plugin-transform-es2015-block-scoped-functions":"^6.3.13","babel-plugin-transform-es2015-block-scoping":"^6.3.13","babel-plugin-transform-es2015-classes":"^6.3.13","babel-plugin-transform-es2015-computed-properties":"^6.3.13","babel-plugin-transform-es2015-destructuring":"^6.3.13","babel-plugin-transform-es2015-for-of":"^6.3.13","babel-plugin-transform-es2015-function-name":"^6.3.13","babel-plugin-transform-es2015-literals":"^6.3.13","babel-plugin-transform-es2015-modules-commonjs":"^6.3.13","babel-plugin-transform-es2015-object-super":"^6.3.13","babel-plugin-transform-es2015-parameters":"^6.3.13","babel-plugin-transform-es2015-shorthand-properties":"^6.3.13","babel-plugin-transform-es2015-spread":"^6.3.13","babel-plugin-transform-es2015-sticky-regex":"^6.3.13","babel-plugin-transform-es2015-template-literals":"^6.3.13","babel-plugin-transform-es2015-unicode-regex":"^6.3.13","babel-plugin-transform-es3-member-expression-literals":"^6.5.0","babel-plugin-transform-es3-property-literals":"^6.5.0","babel-plugin-transform-object-rest-spread":"^6.3.13","babel-register":"^6.3.13","coveralls":"^2.13.1","cross-env":"^5.0.1","eslint":"^3.19.0","eslint-config-react-app":"^1.0.4","eslint-plugin-flowtype":"^2.29.2","eslint-plugin-import":"^2.2.0","eslint-plugin-jsx-a11y":"^5.0.3","eslint-plugin-react":"^7.1.0","expect":"^21.2.1","gitbook-cli":"^2.3.0","glob":"^7.1.1","jest":"^20.0.4","prop-types":"^15.6.0","react":"16.0.0","react-dom":"16.0.0","react-redux":"^5.0.6","redux":"^3.7.2","rimraf":"^2.3.4","rollup":"^0.43.0","rollup-plugin-babel":"^2.7.1","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-replace":"^1.1.1","rollup-plugin-uglify":"^2.0.1"},"authors":["Vinicius Dacal <viniciusldacal@gmail.com> (https://github.com/viniciusdacal)"],"license":"MIT","jest":{"coverageDirectory":"./coverage","testRegex":"(/test/.*\\.spec.js)$"},"dependencies":{"babel-preset-react":"^6.24.1"},"peerDependencies":{"prop-types":">= 15.6.0","react":">= 15.0.0","react-redux":">= 5.0.0","redux":">= 3.7.1"},"gitHead":"3d62b2aa8ee88572cf3e9cb3b9af27a5398f01d1","_id":"redux-connect-standalone@0.0.1","_npmVersion":"5.4.2","_nodeVersion":"8.1.2","_npmUser":{"name":"viniciusdacal","email":"viniciusldacal@gmail.com"},"dist":{"integrity":"sha512-6kkibUjb0tz2+zQV9xyfpDysvN6O/peKTpav4q3UX3nd7lr1RzZnInIOrf4VjyvhoqS48+HlVyFV8/ZuLu45Ug==","shasum":"d6740a92ee6fe9dd0d2abf0d5fc839d4aea7152f","tarball":"https://registry.npmjs.org/redux-connect-standalone/-/redux-connect-standalone-0.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDn7Nx6GsOc2gFxvAFvo+7j3+LqYTppCr74aYM8rOLcFAiEAtfQSHfgvxHMDkwQsfki3dE99BIxUi1Gld429Dawro8Q="}]},"maintainers":[{"name":"viniciusdacal","email":"viniciusldacal@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/redux-connect-standalone-0.0.1.tgz_1507599587746_0.40719143161550164"}}},"readme":"# Redux Connect Standalone\nThis is HOC fuction that allows you to use redux when you aren't able to have a single root Provider in your application. Eg: You are migrating a legacy application to React and has a few react components inside this application.\n\nBefore using this, you need to configure your redux store and export it, just like below.\n\n```js\nimport { createStore } from 'redux';\nimport rootReducer 'path/to/rootReducer';\n\nconst store = createStore(rootReducer)\nexport default store;\n```\n\nThen, you can create a file named connect, import the store into it and generate you connect function:\n\n```js\nimport createConnect from 'redux-connect-standalone';\nimport store from 'path/to/youStore'\n\nexport const connect = createConnect(store);\n```\n\nNow, you can use this function the same way you would use [react-redux's connect function](https://github.com/reactjs/react-redux/blob/master/docs/api.md#connectmapstatetoprops-mapdispatchtoprops-mergeprops-options):\n\n```jsx\nimport { connect } from 'path/to/yourConnect';\nimport TodoList from './TodoList';\n\nexport default connect(mapStateToProps, mapDispatchToProps)(TodoList)\n```\n\n\n### License\nMIT\n","maintainers":[{"name":"viniciusdacal","email":"viniciusldacal@gmail.com"}],"time":{"modified":"2022-05-15T15:00:41.346Z","created":"2017-10-10T01:39:47.805Z","0.0.1":"2017-10-10T01:39:47.805Z"},"keywords":["redux","react","react-redux","hoc"],"license":"MIT","readmeFilename":"README.md"}