Uncontrolled component lưu giá trị trong DOM, không sync với React state.
Dùng ref để đọc khi cần (submit):
const inputRef = useRef(null); <input ref={inputRef} />Uncontrolled component lưu giá trị trong DOM, không sync với React state.
Dùng ref để đọc khi cần (submit):
const inputRef = useRef(null); <input ref={inputRef} />Xem toàn bộ React cùng filter theo level & chủ đề con.
Mở danh sách React