Next:mui:client.ts:59 The pseudo class “:nth-child“ is potentially unsafe when doing server-side ren

client.ts:59 The pseudo class ":nth-child" is potentially unsafe when doing server-side rendering. Try changing it to ":nth-of-type"

这个警告是因为在服务器端渲染(SSR)中使用 :nth-child 伪类可能会导致一些问题,因为服务器和客户端的渲染顺序可能不同,从而导致样式不一致。建议将 :nth-child 替换为 :nth-of-type 来避免这个潜在的问题。 

你可能感兴趣的:(前端,前端,react,mui)