Hello everyone. I'm trying to implement wrapper ov...
# javascript
p
Hello everyone. I'm trying to implement wrapper over Ring UI Loader component. There is prop with name 'data-test' (
static propTypes = {/* ... */ 'data-test': PropTypes.string, /* ... */ };
) How can I implement this prop in Kotlin/JS (I've tried
@JsName("data-test")
, but it says "Name contains illegal chars that can't appear in JavaScript identifier")?
a
Is
data-test
a prop or an attribute? can you check? Coz if it an attribute you should be able to set it in
attrs{}
t
@Pavel Matusevich Do you use IR?
Also you can use
inline var
in IR like here, but without adapter
p
No, I'm not using IR. First link from @turansky helped very much. Thanks a lot!