score:1

Accepted answer
constructor (props: IProps) {
  super(props)
  this.state = { query: '', inStock: false }
  this.state.group = this.groupByCategory(products)
}

Related Query

More Query from same tag