Reactjs – How to handle loading/disabled states and click functions of multiple buttons using the same reusable <Button/> component across a screen?
The problem: I have a Parent component that has multiple buttons. Each button will fetch data from the API for different endpoints. The requirement is when a button is clicked it should go into a loading state and the other…