Should i use useEffect or onClick handler? – Reactjs
I have a component with tabs say TabA and TabB. Each of them has a table who's data changes depending on which tab the user is at. Now to get this functionality there are two approaches to it. Either i…