input 태그
<input type='text' className='form-control' onKeyUp={onKeyUp}/>
onKeyUp함수
const onKeyUp = (e:React.KeyboardEvent<HTMLInputElement>)=>{ if (e.code === 'Enter') { onClick(ref.current?.value); } };