Skip to content

Commit fe018bf

Browse files
committed
add default reducer
1 parent e4c4496 commit fe018bf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/reducers/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import { combineReducers } from 'redux';
22

3-
const rootReducer = combineReducers({});
3+
const rootReducer = combineReducers({
4+
state: (state = {}) => state
5+
});
46

57
export default rootReducer;

0 commit comments

Comments
 (0)