Mutable vs immutable ref
// Mutable const inputRef = useRef<HTMLInputElement>(null); // Immutable const inputRef = useRef<HTMLInputElement | null>(null);