Skip to content

Instantly share code, notes, and snippets.

@nguyenyou
Last active February 22, 2025 05:48
Show Gist options
  • Save nguyenyou/9b5967cf7d4ea8216f134895aa38b938 to your computer and use it in GitHub Desktop.
Save nguyenyou/9b5967cf7d4ea8216f134895aa38b938 to your computer and use it in GitHub Desktop.
Hello Laminar
//> 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