I would hate to do any kotlin JS or javascript pro...
# javascript
d
I would hate to do any kotlin JS or javascript programming without JQuery, so learn how to call that. I'm still trying to figure out the best way to do that myself, currently I just use the interop but would be nice to eventually get some kind of static typing for it somehow
k
d
ah I skipped over that because I saw "npm" and don't use node, so I thought it was node-specific
n
JQuery is no longer the standard way to manipulate/access the DOM (Document Object Model). Instead web developers use the standard web API(s) like the DOM API (https://developer.mozilla.org/en-US/docs/Web/API/Document_Object_Model).
Kotlin JS has access to the standard DOM API through its standard lib (via JS interop). As you can see ☝️ Mozilla are starting to recognise that not everyone uses JS to do client side web development.
d
are the selectors there as powerful as in jquery?
are they the same as CSS selectors?
@konsoletyper I tried to use
ts2kt
, it generated the header files... however... I can't compile them in kotlin... There are a lot of error messages. Also it doesn't seem to like
@nativeInvoke
, which is everywhere in the generated code (deprecated)
k
You can try to fix these errors manually