Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
render() {
const { attachTo, children, component, width, transitionState } = this.props;
if (!attachTo) {
return null;
}
return createPortal(
<dialog width="{width}">
{children}
</dialog>
,
attachTo
);
}
}