0
export const LoginFailure =()=>({
    type:"LOGIN_FAILURE",
});

I was going through a git repository and their a saw this one and i am confuse why is this type of export I think it would be like this

export const LoginFailure=()=>{
}
callback
  • 3,661
  • 1
  • 29
  • 53
  • Yes, its still just an arrow function. It just returns an object. The parentheses are to address the return syntax. – zero298 Nov 10 '21 at 11:47

0 Answers0