useEffect(() => {
dispatch(auth()).then(response => {
// console.log(response)
//로그인 하지 않은 상태
if (response.payload.isAuth) {
console.log('로그인 상태')
}else{
//로그인한 상태
console.log('로그인 아닌 상태')
}
})
}, [])
//import { auth } from '../../../_actions/user_action';
를 이런식으로 사용하면 안되는 이유가 있나요?