reactjs typeerror 3a cannot read property 27offsetheight 27 of null

Solutions on MaxInterview for reactjs typeerror 3a cannot read property 27offsetheight 27 of null by the best coders in the world

showing results for - "reactjs typeerror 3a cannot read property 27offsetheight 27 of null"
Emma
09 Sep 2017
1  handleResize = () => {
2    let highestSlide = 0;
3
4    this.refArray.forEach(ref => {
5      if (ref.current && highestSlide < ref.current.offsetHeight) {
6        highestSlide = ref.current.offsetHeight;
7      }
8    });
9  };