score:4

Accepted answer
const filteredContent = this.state.tabs.filter(
  (tab, index) => index === this.state.activeTab
);

Related Query

More Query from same tag