Skip to content

Commit

Permalink
Merge pull request #22 from lalitmee/development
Browse files Browse the repository at this point in the history
removed router from index.js
  • Loading branch information
lalitmee authored Jul 25, 2019
2 parents 23572f9 + dc93f33 commit 654ec3d
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 654ec3d

Please sign in to comment.