'Disable Button for a period of time using React

I want that when the user clicks on this button, it will be disable for a period of time and then it will enable automatically



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source