In React, how to disable and enable buttons in the child component with onClick tied to a callback function from parent component? – Javascript
I've a Parent-Child component structure. In parent, I've a function that calls a web service and take few seconds to complete. From parent, I'm passing this function as a prop to the child. Child component displays buttons with an onClick…