ReactJS complex (if / else if) not working as expected

后端 未结 0 1871
栀梦
栀梦 2020-12-17 04:18

I have the following conditional

if (
    !user.userId
    && match.path === \'/login\'
) {
    component = 
} else if (
    user.userId         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题