TypeError: Cannot read property 'offsetLeft' of null code example
Example: reactjs typeError: Cannot read property 'offsetHeight' of null
handleResize = () => {
let highestSlide = 0;
this.refArray.forEach(ref => {
if (ref.current && highestSlide < ref.current.offsetHeight) {
highestSlide = ref.current.offsetHeight;
}
});
};