consttabs=[{id: 'tab-1',title: 'Tab 1',content: 'Some text 1'},{id: 'tab-2',title: 'Tab 2',content: 'Some text 2'},{id: 'tab-3',title: 'Tab 3',content: 'Some text 3'},];
Save the selectedTab in the App (the first one by default)
Implement the Tabs component accepting tabs as a prop
and displaying a link per each tab and the content of the selected tab
Pass the selectedTabId as a prop to the Tabs, the specified tab should be selected if possible
(otherwise the first tab is selected)
Pass the onTabSelected callback to the Tabs
it should be called whenever the user selects another tab.
(Don't call the callback if the tab was not changed)
The callback should receive the data of the selected tab (an object from the array)
Create an h1 inside the App saying Selected tab is Tab 1 (show the title of the selected tab)
When the user selects another tab the h1 should be updated accordingly