Skip to content

Instantly share code, notes, and snippets.

@biancadragomir
Last active October 15, 2021 16:13
Show Gist options
  • Save biancadragomir/a65c88057f9c19b20443f8df7d898b77 to your computer and use it in GitHub Desktop.
Save biancadragomir/a65c88057f9c19b20443f8df7d898b77 to your computer and use it in GitHub Desktop.
const Popup = () => {
...
const handleClose = () => {
props.closePopup();
}
return (
<ClickAwayListener onClickAway={handleClose}>
{renderPopupContent()}
</ClickAwayListener>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment