Skip to content
This repository was archived by the owner on Jul 7, 2021. It is now read-only.

Commit bef93fe

Browse files
committed
create basic functionality in postReducer
1 parent 304d413 commit bef93fe

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/reducers/postReducer.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import { FETCH_POSTS, NEW_POST } from "../actions/types";
2+
3+
const initialState = {
4+
items: [],
5+
item: {},
6+
};
7+
8+
export default function (state = initialState, action) {
9+
switch (action.type) {
10+
default:
11+
return state;
12+
}
13+
}

0 commit comments

Comments
 (0)