{"name":"react-router-redux","version":"5.0.0-alpha.4","description":"Redux bindings for React Router","repository":{"type":"git","url":"git+https://github.com/reacttraining/react-router.git"},"license":"MIT","authors":["Tim Dorr"],"files":["ConnectedRouter.js","reducer.js","middleware.js","actions.js","index.js","README.md","es","umd"],"main":"index.js","module":"es/index.js","scripts":{"build":"node ./tools/build.js","prepublish":"node ./tools/build.js","watch":"babel ./modules -d . --ignore __tests__ --watch","clean":"git clean -fdX .","lint":"eslint modules","test":"jest"},"peerDependencies":{"react":"^15"},"dependencies":{"history":"^4.5.1","react-router":"^4.0.0"},"devDependencies":{"babel-cli":"^6.14.0","babel-core":"^6.14.0","babel-eslint":"^7.1.1","babel-jest":"^19.0.0","babel-plugin-transform-react-remove-prop-types":"^0.3.2","babel-preset-es2015":"^6.14.0","babel-preset-react":"^6.5.0","babel-preset-stage-1":"^6.5.0","eslint":"^3.5.0","eslint-plugin-import":"^2.2.0","eslint-plugin-react":"^6.3.0","gzip-size":"^3.0.0","in-publish":"^2.0.0","jest":"^19.0.2","pretty-bytes":"^4.0.2","react":"^15.4.2","react-dom":"^15.4.2","react-redux":"^5.0.3","react-test-renderer":"^15.3.2","redux":"^3.6.0","rollup":"^0.41.4","rollup-plugin-babel":"^2.7.1","rollup-plugin-uglify":"^1.0.1"},"bugs":{"url":"https://github.com/reacttraining/react-router/issues"},"homepage":"https://github.com/reacttraining/react-router#readme","_id":"react-router-redux@5.0.0-alpha.4","_shasum":"0f64a8633ee78e14ee3eb96c6354ee134aa6ce4f","_from":".","_npmVersion":"4.3.0","_nodeVersion":"6.2.1","_npmUser":{"name":"timdorr","email":"timdorr@timdorr.com"},"dist":{"shasum":"0f64a8633ee78e14ee3eb96c6354ee134aa6ce4f","tarball":"http://registry-npm.ywwl.com/react-router-redux/download/react-router-redux-5.0.0-alpha.4.tgz","integrity":"sha512-4kl03Afh63X7wD+/VJDwWC6DdrBn1bm9OmIiW3XW5SOJb+/yVQ/P5NIv9QGSl2erIIrQW7whlo6OqzTPIC5vTA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHxrh4sZzy/4r07KKsVMsTEF92P3TZh7TPf5vL4fIugpAiA+vaW/qghPALQ8j7NS0mPx+wkiR6DVhpHCiuERdxFmVQ=="}],"size":5754,"noattachment":false,"key":"/react-router-redux/-/react-router-redux-5.0.0-alpha.4.tgz"},"maintainers":[{"name":"jlongster","email":"longster@gmail.com"},{"name":"mjackson","email":"mjijackson@gmail.com"},{"name":"ryanflorence","email":"rpflorence@gmail.com"},{"name":"timdorr","email":"timdorr@timdorr.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/react-router-redux-5.0.0-alpha.4.tgz_1489982846790_0.05648487759754062"},"directories":{},"readme":"# react-router-redux\n\n[![npm version](https://img.shields.io/npm/v/react-router-redux/next.svg?style=flat-square)](https://www.npmjs.com/package/react-router-redux)  [![npm downloads](https://img.shields.io/npm/dm/react-router-redux.svg?style=flat-square)](https://www.npmjs.com/package/react-router-redux) [![build status](https://img.shields.io/travis/reactjs/react-router-redux/master.svg?style=flat-square)](https://travis-ci.org/reactjs/react-router-redux)\n\n> **Keep your state in sync with your router** :sparkles:\n\nThis is beta software, it needs:\n\n1. A working example\n2. Some people to try it out and find bugs\n3. A strategy for working with the devtools\n   - (issue describing a different approach to what we've seen previously coming soon)\n   \n## Versions\n\nThis (react-router-redux 5.x) is the version of react-router-redux for use with react-router 4.x. \nUsers of react-router 2.x and 3.x want to use react-router-redux found at [the legacy repository](https://github.com/reactjs/react-router-redux).\n\n## Installation\n\n```\nnpm install --save react-router-redux@next\nnpm install --save history\n```\n\n## Usage\n\nHere's a basic idea of how it works:\n\n```js\nimport React from 'react'\nimport ReactDOM from 'react-dom'\n\nimport { createStore, combineReducers, applyMiddleware } from 'redux'\nimport { Provider } from 'react-redux'\n\nimport createHistory from 'history/createBrowserHistory'\nimport { Route } from 'react-router'\n\nimport { ConnectedRouter, routerReducer, routerMiddleware, push } from 'react-router-redux'\n\nimport reducers from './reducers' // Or wherever you keep your reducers\n\n// Create a history of your choosing (we're using a browser history in this case)\nconst history = createHistory()\n\n// Build the middleware for intercepting and dispatching navigation actions\nconst middleware = routerMiddleware(history)\n\n// Add the reducer to your store on the `router` key\n// Also apply our middleware for navigating\nconst store = createStore(\n  combineReducers({\n    ...reducers,\n    router: routerReducer\n  }),\n  applyMiddleware(middleware)\n)\n\n// Now you can dispatch navigation actions from anywhere!\n// store.dispatch(push('/foo'))\n\nReactDOM.render(\n  <Provider store={store}>\n    { /* ConnectedRouter will use the store from Provider automatically */ }\n    <ConnectedRouter history={history}>\n      <div>\n        <Route exact path=\"/\" component={Home}/>\n        <Route path=\"/about\" component={About}/>\n        <Route path=\"/topics\" component={Topics}/>\n      </div>\n    </ConnectedRouter>\n  </Provider>,\n  document.getElementById('root')\n)\n```\n","publish_time":1489982848589,"_cnpm_publish_time":1489982848589,"dist-tags":{"latest":"4.0.8","next":"5.0.0-alpha.9"}}