Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const initialState = {
- users:{},
- }
- const userReducer = (state = initialState, action) => {
- if (action.type == "FETCH_USERS") {
- return {
- ...state,
- users: action.payload
- }
- }
- return state;
- }
- ERROR in ./index.js
- Module build failed: SyntaxError: C:/app/index.js: Unexpected token (78:12)
- 76 |
- 77 | return {
- > 78 | ...state,
- | ^
- 79 | users: action.payload
- 80 | // }
- 81 | }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement