I create a React application with the Kotlin/Wrapp...
# javascript
d
I create a React application with the Kotlin/Wrappers. For some components I need to pass an array of properties, which I would like to add the new annotation @JsPlainObject to avoid having to use jso. However, this fails due to the React props, which do not have this annotation. @turansky Could the annotation be added or is there something against it?
t
In that case
@JsPlainObject
will be required for all
Props
inheritors 😞
But it will break compilation in some cases (1 and 2)
And in long perspective it's what
Props
can/should receive by default (strict factory functions), without additional annotations.
d
Ok, thank you very much for the answer. Then I will continue to use jso for the moment.
t
Also you can't have JS function with 256+ parameters
But we have props with 300+ fields