score:5

Accepted answer
class AddItem extends React.Component {
  constructor() {
    super();
    this.addIt = this.addIt.bind(this);
  }
  // other code
}

Related Query

More Query from same tag