Skip to content

Commit

Permalink
fixes ##1403 - added missing async keywrod for a function `initReac…
Browse files Browse the repository at this point in the history
…` which uses `async` internally
  • Loading branch information
yairEO committed Nov 9, 2024
1 parent e15abdb commit f1bbd0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/react-compat-layer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit f1bbd0c

Please sign in to comment.