Skip to content

Commit

Permalink
removed router from index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lalitmee committed Jul 25, 2019
1 parent 3f84863 commit dc93f33
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import { BrowserRouter as Router } from 'react-router-dom';
import { applyMiddleware, createStore } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension';
import thunk from 'redux-thunk';
Expand All @@ -13,15 +12,13 @@ import rootReducer from './store/reducers/index';

const store = createStore(
rootReducer,
composeWithDevTools(applyMiddleware(thunk)),
composeWithDevTools(applyMiddleware(thunk))
);

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

0 comments on commit dc93f33

Please sign in to comment.