Answers for "reactjs typeError: Cannot read property 'offsetHeight' of null"

0

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;
      }
    });
  };
Posted by: Guest on November-14-2020

Code answers related to "reactjs typeError: Cannot read property 'offsetHeight' of null"

Code answers related to "Javascript"

Browse Popular Code Answers by Language