Skip to content

Commit

Permalink
Merge pull request #91 from sentry-demos/kelly/add-redux-logger
Browse files Browse the repository at this point in the history
feat: Add Redux Logger
  • Loading branch information
mikellykels authored Jun 25, 2020
2 parents c518b2a + d381619 commit d418d5a
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
13 changes: 13 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"react-router": "^1.0.3",
"react-scripts": "^3.4.1",
"redux": "^4.0.5",
"redux-logger": "^3.0.6",
"request": "^2.88.0",
"serve": "^10.1.2"
},
Expand Down
8 changes: 6 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { createStore } from 'redux';
import { createStore, applyMiddleware } from 'redux';
import { Provider } from 'react-redux';
import logger from 'redux-logger';

import './index.css';
import App from './components/App';
import registerServiceWorker from './registerServiceWorker';
import reducer from './store/reducers/app';

const store = createStore(reducer);
const store = createStore(
reducer,
applyMiddleware(logger)
);

ReactDOM.render(<Provider store={store}><App /></Provider> , document.getElementById('root'));

Expand Down

0 comments on commit d418d5a

Please sign in to comment.