React Detect Click Outside Example Forked Codesandbox

React Detect Click Outside Example Forked Codesandbox