Next.js使用MUI报错Add the "use client" directive at the top of the file to use it.
在Next.js中使用MUI会报错:TypeError: createContext only works in Client Components. Add the "use client" directive at the top of the file to use it. 解决方法是加上"use client"标签。
2023-11-05 1877 0