Last active
February 22, 2025 05:48
-
-
Save nguyenyou/9b5967cf7d4ea8216f134895aa38b938 to your computer and use it in GitHub Desktop.
Hello Laminar
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//> using scala 3.6.3 | |
//> using platform scala-js | |
//> using dep "org.scala-js::scalajs-dom::2.8.0" | |
//> using dep "com.raquo::laminar::17.2.0" | |
//> using jsModuleKind es | |
//> using jsModuleSplitStyleStr fewestmodules | |
package myapp | |
import org.scalajs.dom | |
import com.raquo.laminar.api.L.* | |
@main | |
def main(): Unit = { | |
val container = dom.document.getElementById("app") | |
render( | |
container, | |
div( | |
"Hello, Laminar!" | |
) | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment