nextjs的服务器渲染

43 阅读1分钟

nextjs的服务器渲染

1,客户端渲染的代码 在代码上面用

"use client"

没事注释 useclient的代码是在服务器上渲染好的 2,html和body 标签在服务器中渲染就好 3,useEffect 只能在客户端的代码中使用