rxjs-store-logger
v0.0.1
Published
Logging middleware for rxjs-store
Downloads
4
Readme
rxjs-store-logger
Logging middleware for rxjs-store.
npm install redux-store-logger --save
Example Usage
import {createReducer, combineReducers, applyMiddleware} from 'rxjs-store';
import createLogger from 'rxjs-store-logger';
...
const store = combineReducers({...});
const actions = {...};
const decoratedStore = applyMiddleware(createLogger())(store);
class App extends React.Component {
render () {
return (
<Provider store={decoratedStore} actions={actions}>
...
</Provider>
);
}
}