const limit = useRef<string>("")
<input
type="text"
ref={limit => limit as HTMLInputElement}
onChange={(e: React.ChangeEvent<HTMLInputElement>) => (limit.current = e.target.value)}
name={'limit'}
/>
react, typescript로 useRef 사용시