diff --git a/src/react-compat-layer.js b/src/react-compat-layer.js index 55f5fa85..bd71b1ce 100644 --- a/src/react-compat-layer.js +++ b/src/react-compat-layer.js @@ -5,7 +5,7 @@ let useEffect; let useRef; let useCallback; -function initReact() { +async function initReact() { try { // Try to import React as a namespace (React 18+) const ReactModule = await import('react');