score:0

function filterBuilding(value) {
  const filtered = this.state.buildings.filter(
    item => value.target.value === item.buildingType
  );

  this.setState({ buildings: filtered });
}

More Query from same tag