I've noticed there are two Kotlin libraries wrappi...
# javascript
g
I've noticed there are two Kotlin libraries wrapping the DOM.
web.dom
in
kotlin-wrappers:kotlin-browser-js
and
kotlinx.browser
in
kotlin-dom-api-compat
. Which is the recommended one to use, web.dom or kotlinx.browser?
a
Depends on what you are trying to do. If you need to access the dom, use kotlin dom. BTW, web.dom depends on kotlinx.browser
g
Ok, so likely better to use web.dom. Also it looks like the kotlin react wrappers use web.dom.
t
BTW, web.dom depends on kotlinx.browser
No ­čÖé
kotlin-wrappers:kotlin-browser-js
- modern wrappers for Browsers with regular updates - all stable API inside. In common case it's what you need.
thank you color 1