此问题已在此处有答案:
You're importing a component that needs useState. It only works in a Client Component, but none of its parents are marked with "use client"(1个答案)
昨天关门了。
我是Next.js的新手。尝试13.1
版本和新的app
目录。
有可能这样做吗?而不失去服务器控件的新好处?
我看到以下错误:
You're importing a component that needs useState. It only works in a Client Component but none of its parents are marked with "use client", so they're Server Components by default.
1条答案
按热度按时间huwehgph1#