로그인 페이지마다 체크

김용희·2022년 1월 9일
0

const id = useSelector((state)=> state.user.me && state.user.me.id);

const id = useSelector((state)=> state.user.me?.id);

있나없나 의심되는 부분은 ? 로 옵셔널체이닝을 한다

profile
He threw his knapsack over the brick wall

0개의 댓글