in input text ?
No use useState not useRef.. useRef is for referencing dom contents generally though u can use it for other purposes. But useState is indeed better for your use case and is general practice
Обсуждают сегодня