For anyone reading this in 2020 its
const el = useRef<null | HTMLDivElement>(null);
and no longer:
const el = useRef<null | HTMLElement>(null);
For anyone reading this in 2020 its
const el = useRef<null | HTMLDivElement>(null);
and no longer:
const el = useRef<null | HTMLElement>(null);