Detecting Click Outside Component Using React Hooks

Detecting Click Outside Component Using React Hooks