How to detect click outside in a React component
You might have come across instances where you would want to do certain actions when the user clicks...
Tags: react, hooks