score:1

Accepted answer
componentDidMount() {
  window.addEventListener('scroll', this.handleScroll);
  this.handleScroll();
}

Related Query

More Query from same tag