This video explains how to add a spinner for buttons when a user is performing an action. This will help you prevent users from clicking the button twice before performing the actual action.
Source + Demo : https://codesandbox.io/s/0y47p79wml
Hire me in Fiverr - https://www.fiverr.com/premkumarssp
Please subscribe to the channel for more videos - / dcoders