We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 421a1c8 commit 94ad567Copy full SHA for 94ad567
src/components/Modal.js
@@ -10,7 +10,7 @@ import { polyfill } from "react-lifecycles-compat";
10
export const portalClassName = "ReactModalPortal";
11
export const bodyOpenClassName = "ReactModal__Body--open";
12
13
-const isReact16 = ReactDOM.createPortal !== undefined;
+const isReact16 = canUseDOM && ReactDOM.createPortal !== undefined;
14
15
const getCreatePortal = () =>
16
isReact16
0 commit comments