it can't work with antd UI lib
Closed this issue · 2 comments
hanmingpan commented
ordinary element can be work.
but UI element's props Classname can't be work.
gaoxiaoliangz commented
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>
}
hanmingpan commented
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!!!