<Input type="password" placeholder="" onKeyUp={ChangePasswordHandler}>
{changePw}
</Input>
input
이 아니라 우리는 tailwind
으로 스타일링한 컴포넌트(Input
)를 사용하고 있었기 때문에 발생한 에러tag
를 넣는것은 불가능하기 때문에, div
와 같은 태그로 감싸주어야 한다.<Input type="password" placeholder="" onKeyUp={ChangePasswordHandler}>
<div>
{changePw}
</div>
</Input>