05-20
😁 한 일
-
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 만들어서 글로벌로 토큰 관리 (예전 코드 참고)
Author And Source
이 문제에 관하여(05-20), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://velog.io/@bb2sol/0520
저자 귀속: 원작자 정보가 원작자 URL에 포함되어 있으며 저작권은 원작자 소유입니다.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
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 만들어서 글로벌로 토큰 관리 (예전 코드 참고)
Author And Source
이 문제에 관하여(05-20), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://velog.io/@bb2sol/0520저자 귀속: 원작자 정보가 원작자 URL에 포함되어 있으며 저작권은 원작자 소유입니다.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)