Advertisement
Fahim_7861

reducer

Jul 16th, 2021
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. import React from 'react';
  2.  
  3. import { AUTH_INFO_LOAD} from '../../constants/types';
  4.  
  5. const initialState = {};
  6.  
  7.  
  8. const authReducers = (state=initialState,action) => {
  9.  
  10.  
  11. switch(action.type)
  12. {
  13. case AUTH_INFO_LOAD : return {...action.payload};
  14.  
  15. default : return state;
  16. }
  17.  
  18. };
  19.  
  20. export default authReducers;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement