Hello, I just wanted to ask if someone has an exam...
# javascript
j
Hello, I just wanted to ask if someone has an example on how to create standard web components using Kotlin. Thanks!
s
Heya, what do you mean by standard web components? It would help if you gave some examples! technically you can do (almost?) anything in Kotlin anything you can do in JS as its interoperable, however some frameworks are not supported out of the box. I would take a look at compose for web (WasmJS) or compose html (kotlin for JS) if you want an easy to understand framework to create reactive components. But KotlinJS also has a nice type-safe html dsl . Another good resource in general is: https://klibs.io (Also 😉 : https://stackoverflow.com/help/how-to-ask)
t
@jaguililla what is your use case? Do you need it internal use (inside the same application)? Or you want to create component's library? In both cases some additional pills will be required.
e
There is also https://youtrack.jetbrains.com/issue/KT-44444 that was opened by @turansky
j
In the comments I could find this: https://github.com/JetBrains/kotlin-wrappers/issues/2007 I'm going to try with the Kotlin wrappers
t
What you will use to build HTML?
j
I will start by creating a Web component and inserting it in a HTML page, I guess (front end is a bit unknown to me)