Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
transitionState,
} = this.props;
const dialogTitleId = generateUEID();
if (!attachTo) {
return null;
}
return createPortal(
<dialog aria-labelledby="{dialogTitleId}">
{heading} Dialog
{heading ? (
<header>
<title>{heading}</title>
</header>
) : null}
{children}
{footer ? <footer>{footer}</footer> : null}
</dialog>