Closed linchCN closed 1 year ago
antd5 使用了cssinjs,开发模式下经常会出现 “ Prop className did not match”。
className
antd5 针对SSR提供了个配置例子,Ref:https://ant.design/docs/react/customize-theme#server-side-render-ssr
而我们这是要如何兼容?
版本: "antd": "5.0.1", "ssr": "6.2.39", "ssr-plugin-midway": "6.2.17", "ssr-plugin-react": "6.2.56", "ssr-types-react": "6.2.9", "ssr-common-utils": "6.2.56", "ssr-core-react": "6.2.16",
这个错误跟 css in js没有任何关系。文档写的东西也跟这个错误没有任何关系。不要用css modules就行了
这个类名是antd,不是我加的
https://github.com/ant-design/ant-design/discussions/38753
antd5 使用了cssinjs,开发模式下经常会出现 “ Prop
className
did not match”。antd5 针对SSR提供了个配置例子,Ref:https://ant.design/docs/react/customize-theme#server-side-render-ssr
而我们这是要如何兼容?
版本: "antd": "5.0.1", "ssr": "6.2.39", "ssr-plugin-midway": "6.2.17", "ssr-plugin-react": "6.2.56", "ssr-types-react": "6.2.9", "ssr-common-utils": "6.2.56", "ssr-core-react": "6.2.16",