gaoxiaoliangz/react-scoped-css

it can't work with antd UI lib

Closed this issue · 2 comments

ordinary element can be work.
but UI element's props Classname can't be work.

The data-v-hash prop should be passed down to make it work. As it is passed by babel at compile time, you have to do it this way:

const Button = ({children, ...rest}) => {
  return <button {...rest}>{children}</button>
}

The data-v-hash prop should be passed down to make it work. As it is passed by babel at compile time, you have to do it this way:

const Button = ({children, ...rest}) => {
  return <button {...rest}>{children}</button>
}

thank you!!!