File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react'
2
2
import { Provider } from 'react-redux'
3
3
import { BrowserRouter as Router } from 'react-router-dom'
4
- import { applyMiddleware , createStore } from 'redux'
4
+ import { applyMiddleware , compose , createStore } from 'redux'
5
5
import ReduxThunk from 'redux-thunk'
6
6
import './App.css'
7
7
import Footer from './Components/Footer'
8
8
import Navbar from './Components/Navbar'
9
9
import reducers from './Redux/Reducer'
10
10
import Routes from './Routes'
11
11
12
- const store = createStore ( reducers , applyMiddleware ( ReduxThunk ) )
12
+ const composeEnhancers = window . __REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose ;
13
+ const store = createStore ( reducers , composeEnhancers ( applyMiddleware ( ReduxThunk ) ) )
14
+
13
15
const App = ( ) => (
14
16
< Provider store = { store } >
15
17
< Router >
You can’t perform that action at this time.
0 commit comments