Prefer 'store enhancer' and remove duplicate CounterApp

This commit is contained in:
Rob Sharp 2015-08-21 21:51:33 +10:00
parent c567bb2d72
commit 1eb5d62ba9

View File

@ -21,7 +21,7 @@ A live-editing time travel environment for Redux.
npm install --save-dev redux-devtools
```
DevTools is a middleware, which should be added to your middleware stack *after* `applyMiddleware` because `applyMiddleware` is potentially asynchronous. Otherwise, DevTools won't see the raw actions emitted by the Promise middleware etc.
DevTools is a store enhancer, which should be added to your middleware stack *after* `applyMiddleware` as `applyMiddleware` is potentially asynchronous. Otherwise, DevTools won't see the raw actions emitted by the Promise store enhancer etc.
To install, firstly import `devTools` into your App container:
```
@ -46,9 +46,6 @@ Lastly, include the `DebugPanel` in your page:
export default class App extends Component {
render() {
return (
<Provider store={store}>
{() => <CounterApp />}
</Provider>
<div>
<Provider store={store}>
{() => <CounterApp />}