Is there some article about best practices for Kotlin/JS development? Something like use simple arrays when possible, use external interfaces instead of data classes, etc.?
š 1
h
hfhbd
09/21/2021, 10:31 AM
And promises instead coroutines...
šš» 1
p
Pitel
09/21/2021, 11:28 AM
@hfhbd What's the downside of coroutines?
h
hfhbd
09/21/2021, 1:54 PM
Its not usable from plain JS
a
ankushg
09/21/2021, 3:56 PM
ah yeah you can use coroutines inside your Kotlin code, but then map to a promise on its way out
t
turansky
09/24/2021, 10:54 AM
⢠Avoid
js
calls - possible in most cases
⢠Avoid
dynamic
in declarations - strict mode
ā¢
ReadonlyArray
for immutable arrays
⢠Use functional components in React