0
Q:

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;
      }
    });
  };
0

New to Communities?

Join the community