Skip to content

Commit

Permalink
redux / dev tool / reducers set up
Browse files Browse the repository at this point in the history
  • Loading branch information
FigueroaR committed Dec 7, 2021
1 parent 86a7d69 commit e42ce53
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@ import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';

import { Provider } from 'react-redux';
import { createStore, applyMiddleware } from 'redux';
import { composeWithDevTools } from 'redux-devtools-extension';
import thunk from 'redux-thunk';
import rootReducer from './reducers/rootReducer';
const store = createStore(rootReducer, composeWithDevTools(applyMiddleware(thunk)))


ReactDOM.render(
<React.StrictMode>
<Provider store={store}>
<App />
</React.StrictMode>,
document.getElementById('root')
);
</Provider>
, document.getElementById('root'));
8 changes: 8 additions & 0 deletions src/reducers/rootReducer.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { combineReducers } from 'redux'


const rootReducer = combineReducers({

})

export default rootReducer

0 comments on commit e42ce53

Please sign in to comment.