You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 26, 2018. It is now read-only.
- Remove `history` module published within the tarball. [#133](https://github.com/rackt/redux-simple-router/issues/133)
8
-
- Make actions conform to [Flux Standard Action](https://github.com/acdlite/flux-standard-action). [#208](https://github.com/rackt/redux-simple-router/pull/208)
7
+
- Remove `history` module published within the tarball. [#133](https://github.com/rackt/react-router-redux/issues/133)
8
+
- Make actions conform to [Flux Standard Action](https://github.com/acdlite/flux-standard-action). [#208](https://github.com/rackt/react-router-redux/pull/208)
Versions 2.0.0 and 2.0.1 were test releases for the 2.* series. 2.0.2 is the first public release.
13
13
@@ -19,18 +19,18 @@ Versions 2.0.0 and 2.0.1 were test releases for the 2.* series. 2.0.2 is the fir
19
19
*`UPDATE_PATH` is now `UPDATE_LOCATION`.
20
20
* The fully parsed [location object](https://github.com/rackt/history/blob/master/docs/Location.md) is now stored in the state instead of a URL string. To access the path, use `state.routing.location.pathname` instead of `state.routing.path`.
21
21
22
-
[View the new docs](https://github.com/rackt/redux-simple-router#api)
22
+
[View the new docs](https://github.com/rackt/react-router-redux#api)
@@ -11,18 +11,18 @@ react-router does a great job of mapping the current URL to a component tree, an
11
11
The entire state that we are interested in boils down to one thing: the URL. This is an extremely simple library that just puts the URL in redux state and keeps it in sync with any react-router changes. Additionally, you can change the URL via redux and react-router will change accordingly.
12
12
13
13
```
14
-
npm install redux-simple-router
14
+
npm install react-router-redux
15
15
```
16
16
17
-
If you want to install the next major version, use `redux-simple-router@next`. Run `npm dist-tag ls redux-simple-router` to see what `next` is aliased to.
17
+
If you want to install the next major version, use `react-router-redux@next`. Run `npm dist-tag ls react-router-redux` to see what `next` is aliased to.
18
18
19
-
View the [CHANGELOG](https://github.com/rackt/redux-simple-router/blob/master/CHANGELOG.md) for recent changes.
19
+
View the [CHANGELOG](https://github.com/rackt/react-router-redux/blob/master/CHANGELOG.md) for recent changes.
20
20
21
21
Read the [API docs](#api) farther down this page.
22
22
23
23
##### _What about redux-router?_
24
24
25
-
[redux-router](https://github.com/rackt/redux-router) is another project which solves the same problem. However, it's far more complex. Take a quick look at [the code for this library](https://github.com/rackt/redux-simple-router/blob/master/src/index.js)—it's extremely minimal. redux-router is much bigger and more complex.
25
+
[redux-router](https://github.com/rackt/redux-router) is another project which solves the same problem. However, it's far more complex. Take a quick look at [the code for this library](https://github.com/rackt/react-router-redux/blob/master/src/index.js)—it's extremely minimal. redux-router is much bigger and more complex.
26
26
27
27
That said, redux-router is a fine project and has features this doesn't provide. Use it if you like it better.
28
28
@@ -36,7 +36,7 @@ That said, redux-router is a fine project and has features this doesn't provide.
36
36
37
37
The idea of this library is to use react-router's functionality exactly like its documentation tells you to. You can access all of its APIs in routing components. Additionally, you can use redux like you normally would, with a single app state.
We only store current URL and state, whereas redux-router stores the entire location object from react-router. You can read it, and also change it with an action.
42
42
@@ -52,7 +52,7 @@ import ReactDOM from 'react-dom'
Now you can read from `state.routing.location.pathname` to get the URL. It's far more likely that you want to change the URL more often, however. You can use the `push` action creator that we provide:
@@ -94,7 +94,7 @@ function MyComponent({ dispatch }) {
94
94
This will change the state, which will trigger a change in react-router. Additionally, if you want to respond to the path update action, just handle the `UPDATE_LOCATION` constant that we provide:
*[mxstbr/react-boilerplate](https://github.com/mxstbr/react-boilerplate/tree/v3.0.0) - :fire: Quick setup for performance orientated, offline first React.js applications
124
-
***Tip**: Upgrading from react-router w/o redux-simple-router? Use [this PR](https://github.com/mxstbr/react-boilerplate/pull/98/files) as a reference!
124
+
***Tip**: Upgrading from react-router w/o react-router-redux? Use [this PR](https://github.com/mxstbr/react-boilerplate/pull/98/files) as a reference!
1. Install dependencies with `npm install` in this directory (make sure it creates a local node_modules)
15
-
2. By default, it uses the local version from `src` of redux-simple-router, so you need to run `npm install` from there first. If you want to use a version straight from npm, remove the lines in `webpack.config.js` at the bottom.
15
+
2. By default, it uses the local version from `src` of react-router-redux, so you need to run `npm install` from there first. If you want to use a version straight from npm, remove the lines in `webpack.config.js` at the bottom.
16
16
3. Build with `webpack --watch`
17
17
4. Open `index.html`
18
18
19
19
-
20
20
21
-
If you want to run the example from the npm published version of
22
-
**redux-simple-router**, remove the alias in `webpack.config`
21
+
If you want to run the example from the npm published version of
22
+
**react-router-redux**, remove the alias in `webpack.config`
23
23
to the source from line 21.
24
24
25
25
This example uses the latest version, switch to a specific tag to use a stable version:
26
26
27
-
e.g. [redux-simple-router tag 1.0.2](https://github.com/rackt/redux-simple-router/tree/1.0.2/examples/basic)
28
-
27
+
e.g. [react-router-redux tag 1.0.2](https://github.com/rackt/react-router-redux/tree/1.0.2/examples/basic)
0 commit comments