아직 해결못한 이슈

문제

Untitled

Untitled

<Input 
	forwardRef={pwd1} 
	type="password" 
	placeholder="" 
	onKeyUp={ChangePasswordHandler}>
</Input>

시도해본 것들

  1. onKeyUp 이벤트가 발생할 때 마다 useState 로 선언되어있는 데이터가 변경되게 되어있기 때문에 모달이 닫히면 setData 를 활용하여 초기화하기

  2. react-component 로 선언되어있는 <Input> 내부에 데이터를 직접 주입하기 ex) <Input> <div> {data} </div> </Input>

    Untitled

  3. useRef 를 사용하여 Input 태그안의 innerText 를 직접 변경

  4. useinput 사용