Is there some article about best practices for Kotlin/JS development? Something like use simple arra...
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