generated from rnentjes/kotlin-server-web-undertow
Refactor: Restructure project package hierarchy and add initial implementation for assembler instructions, shell commands, and exception handling.
This commit is contained in:
18
src/jsMain/kotlin/mtmc/Main.kt
Normal file
18
src/jsMain/kotlin/mtmc/Main.kt
Normal file
@@ -0,0 +1,18 @@
|
||||
package mtmc
|
||||
|
||||
import kotlinx.browser.document
|
||||
import kotlinx.html.div
|
||||
import nl.astraeus.komp.HtmlBuilder
|
||||
import nl.astraeus.komp.Komponent
|
||||
|
||||
class HelloKomponent : Komponent() {
|
||||
override fun HtmlBuilder.render() {
|
||||
div {
|
||||
+ "Hello, world!"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fun main() {
|
||||
Komponent.create(document.body!!, HelloKomponent())
|
||||
}
|
||||
Reference in New Issue
Block a user