How to use ref to access activeTab state value in a custom Tabs component from setActiveTab hook of the parent component?
Parent has a tabRef and Child component has myRef in this.
The Tabs component in question is from this page…….I need to make some changes so that I can access the activeTab of Tabs through parent component with a ref and on the onTabClick needs to be passed through a prop from the Parent instead of being handled within Tabs
https://www.digitalocean.com/community/tutorials/react-tabs-component
submitted by /u/Vegito4709
[link] [comments]