We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de812c6 commit dd8c546Copy full SHA for dd8c546
server/client/src/index.js
@@ -4,8 +4,9 @@ import { Provider } from 'react-redux';
4
import { createStore, applyMiddleware } from 'redux';
5
6
import App from './components/App';
7
+import reducers from './reducers';
8
-const store = createStore(() => [], {}, applyMiddleware());
9
+const store = createStore(reducers, {}, applyMiddleware());
10
11
ReactDOM.render(
12
<Provider store={store}><App /></Provider>,
server/client/src/reducers/index.js
@@ -0,0 +1,6 @@
1
+import { combineReducers } from 'redux';
2
+import authReducer from './authReducer';
3
+
+export default combineReducers({
+ auth: authReducer
+});
0 commit comments