How to fix this.state must be initialized in constructor, not in class body in React | DevErrors