我正在尝试调用'useUser‘自定义钩子,它在_app.tsx的useEffect中使用useEffect & useSWR;。但它抛出了, Invalid hook call.be called inside of the body of a function component. function MyApp({ Component, pageProps }) {
useEffectconsole.error("An unexpected err
我在React Native应用程序中尝试获得准确的计时时遇到了一个问题。下面是我的问题的一个基本版本。但是,当我在useEffect中而不是在组件主体中创建计时器时,我得到了一个Invalid Hook Call, Hooks can only be called inside the body ofimport React from "react";
import { View, Text }