Advertisement
Guest User

Untitled

a guest
Feb 26th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. const initialState = {
  2. users:{},
  3. }
  4.  
  5.  
  6. const userReducer = (state = initialState, action) => {
  7.  
  8. if (action.type == "FETCH_USERS") {
  9.  
  10. return {
  11. ...state,
  12. users: action.payload
  13. }
  14. }
  15.  
  16. return state;
  17. }
  18.  
  19. ERROR in ./index.js
  20. Module build failed: SyntaxError: C:/app/index.js: Unexpected token (78:12)
  21.  
  22. 76 |
  23. 77 | return {
  24. > 78 | ...state,
  25. | ^
  26. 79 | users: action.payload
  27. 80 | // }
  28. 81 | }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement