Relative Content

Tag Archive for reactjsnext.jsfrontend

React Hook “usePathname” cannot be called inside a callback

Am deploying my nextjs application to vercel but the process exits and throws. 28:26 Error: React Hook “usePathname” cannot be called inside a callback. React Hooks must be called in a React function component or a custom React Hook function. react-hooks/rules-of-hooks.