最近搞Server Components整个人都是懵的
把组件写成async function结果报错了 说不能直接import客户端组件...后来才知道原来Server Component只能import其他Server Component,客户端组件得用"use client"声明完再通过props传进来
有没有人知道有没有更优雅的用法啊 我现在每次传组件都感觉好麻烦 是不是我哪里理解错了啊
登录/注册