Skip to content

Commit dd8c546

Browse files
committed
added auth reducer
1 parent de812c6 commit dd8c546

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

server/client/src/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@ import { Provider } from 'react-redux';
44
import { createStore, applyMiddleware } from 'redux';
55

66
import App from './components/App';
7+
import reducers from './reducers';
78

8-
const store = createStore(() => [], {}, applyMiddleware());
9+
const store = createStore(reducers, {}, applyMiddleware());
910

1011
ReactDOM.render(
1112
<Provider store={store}><App /></Provider>,
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { combineReducers } from 'redux';
2+
import authReducer from './authReducer';
3+
4+
export default combineReducers({
5+
auth: authReducer
6+
});

0 commit comments

Comments
 (0)