score:2

Accepted answer
    constructor() {
      super();
      this.state = {
        windowWidth: 0,
        windowHeight: 0
      };
    }

Related Query

More Query from same tag