score:2

Accepted answer
// Actions(auth.js):

export const logout =()=>{
 return {
    type: actionTypes.AUTH_LOGOUT,
 };
};

score:1

export const logout = () => ({
    type: actionTypes.AUTH_LOGOUT
});

Related Query

More Query from same tag