Untitled

let userId = JSON.parse(localStorage.getItem(ID));
    if (userId !== "") {
      setEmail(userId);
    }

→ localStorage에서 가져온 값이 문자열이기 때문에 별도의 parse는 필요하지 않다.

다만, setEmail에 userId 값을 넣을때는 문자열 형태의 값이 아닌 문자 그 자체가 필요하기 때문에 parse로 변환이 필요하다.

⭕

let userId = localStorage.getItem(ID);
    if (userId !== "") {
      setEmail(JSON.parse(userId));
    }