com.raquo.laminar.example.App.scala Maven / Gradle / Ivy
package com.raquo.laminar.example
import com.raquo.laminar.api.L._
import com.raquo.laminar.example.components.{Counter, TaskList}
import com.raquo.laminar.example.pseudotests.{Children, MultiSetters, MultiStyleProp, NestedStyleProp, NodeTypeChange}
import org.scalajs.dom
import org.scalajs.dom.document
import org.scalajs.dom.raw.Event
import scala.scalajs.js
object App extends js.JSApp {
def main(): Unit = {
document.addEventListener("DOMContentLoaded", (e: Event) => {
dom.console.log("=== DOMContentLoaded ===")
val container = document.getElementById("app-container")
container.textContent = ""
// render(container, MultiSetters())
render(container, Children())
// render(container, new TaskList().node)
})
}}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy