+ {open &&
+ // interleave an element during mousedown so that the following mouseup would not be targetted at the mousedown target.
+ // This results in the click event being targetted at the nearest common ancestor.
+ ReactDOM.createPortal(
+
Portaled Div
,
+ document.body,
+ )}
+
+