05-20

골솔·2021년 5월 22일
0

ㅇㅇㅇㅈ 근로

목록 보기
10/15

😁 한 일

  • A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component.

    • input 의 value에 undefined가 들어갔을 경우에 대한 처리가 없다는것..! 다음과 같이 해결하면 된다고 한다.
      value={value|| ''}
  • 객체에 있는 요소 삭제

setData({...data, pw:null})
delete data.pw

🤔 할 일

  • 로그인
    • 비밀번호에서 엔터 누르면 로그인 되도록
    • authContext 만들어서 글로벌로 토큰 관리 (예전 코드 참고)
profile
골때리는이솔

0개의 댓글