aboutsummaryrefslogtreecommitdiff
path: root/src/webpack
diff options
context:
space:
mode:
Diffstat (limited to 'src/webpack')
-rw-r--r--src/webpack/common/react.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/webpack/common/react.ts b/src/webpack/common/react.ts
index d73a3df..1719613 100644
--- a/src/webpack/common/react.ts
+++ b/src/webpack/common/react.ts
@@ -24,10 +24,12 @@ export let useState: typeof React.useState;
export let useEffect: typeof React.useEffect;
export let useMemo: typeof React.useMemo;
export let useRef: typeof React.useRef;
+export let useReducer: typeof React.useReducer;
+export let useCallback: typeof React.useCallback;
export const ReactDOM: typeof import("react-dom") & typeof import("react-dom/client") = findByPropsLazy("createPortal", "render");
waitFor("useState", m => {
React = m;
- ({ useEffect, useState, useMemo, useRef } = React);
+ ({ useEffect, useState, useMemo, useRef, useReducer, useCallback } = React);
});