Closed ProxN closed 3 years ago
Prop className did not match. Server, When using I'm using createX
className
import styled, { createX, compose, space, backgroundColor, } from '@xstyled/styled-components'; const x = createX(compose(space, backgroundColor)); const CustomBox = styled(x.div)` background: red; color: #fff; `; const Box = (props) => { return <CustomBox {...props} />; }; export default Box;
once you start editing code error will show in the console
https://github.com/ProxN/xstyled-custom-x
Will be solved in v3
Please reopen it if you have problem in v3.
🐛 Bug Report
Prop
className
did not match. Server, When using I'm using createXTo Reproduce
once you start editing code error will show in the console
https://github.com/ProxN/xstyled-custom-x