reactify-wc
reactify-wc copied to clipboard
fit for RN?
Is this package currently applicable to RN? I tried to use it in the RN project and pass data to components as props, but it failed.
// react
const Card = reactifyWc("my-card");
<Card data="1234"/>
//web-components
@property()
data:string|number=0;
render(){
return html`
<div>${this.data}<div>
`
}
can not get "1234"
And it even prevents me from inputting "data"in the tag Card ,when it turns ,it warns "Type '{ data: string; }' is not assignable to type 'IntrinsicAttributes & RefAttributes'. Property 'data' does not exist on type 'IntrinsicAttributes & RefAttributes'."