Skip to content

Commit

Permalink
for redux loging purpose installed redux-logger
Browse files Browse the repository at this point in the history
  • Loading branch information
vigneshwaran-chandrasekaran committed Sep 15, 2019
1 parent 3a74fdb commit 03c7c56
Show file tree
Hide file tree
Showing 3 changed files with 17 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 @@ -13,6 +13,7 @@
"react-router-dom": "^5.0.1",
"react-scripts": "3.1.1",
"redux": "^4.0.4",
"redux-logger": "^3.0.6",
"redux-thunk": "^2.3.0"
},
"scripts": {
Expand Down
5 changes: 3 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
import React from 'react';
import ReactDOM from 'react-dom';
// import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
import { createStore, applyMiddleware, compose } from 'redux';
import thunk from 'redux-thunk';
import { Provider } from "react-redux";
import logger from 'redux-logger'
import rootReducer from './reducers';
import App from './App';

// STORE
const store = createStore(
rootReducer,
compose(applyMiddleware(thunk),
compose(applyMiddleware(logger, thunk),
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()));


Expand Down

0 comments on commit 03c7c56

Please sign in to comment.