Periksa apakah inputnya disentuh bereaksi

const [touched, setTouched] = useState(false);
<input onChange={() => { setTouched(true); }} />
ahmad-ali14