Uncaught TypeError: Cannot read property 'offsetHeight' of undefined 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;
}
});
};