Is there some article about best practices for Kot...
# javascript
p
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
And promises instead coroutines...
👎🏻 1
p
@hfhbd What's the downside of coroutines?
h
Its not usable from plain JS
a
ah yeah you can use coroutines inside your Kotlin code, but then map to a promise on its way out
t
• Avoid
js
calls - possible in most cases • Avoid
dynamic
in declarations - strict mode •
ReadonlyArray
for immutable arrays • Use functional components in React
🙂 1