Describe the bug
Unable to make Tabs component a controlled component — passing index does not update active tab
To Reproduce
Steps to reproduce the behavior:
- store tabIndex in local state
- pass tabIndex to the index prop on Tabs component
- create an onChange handler for Tabs component to update tabIndex: onChange={(index) => setTabIndex(index)}
Expected behavior
passing index and onChange should allow owner to control active index state