You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
852 B
26 lines
852 B
package com.example.playscalajsreact
|
|
|
|
import com.example.playscalajsreact.shared.SharedMessages
|
|
import org.scalajs.dom
|
|
import japgolly.scalajs.react._
|
|
import japgolly.scalajs.react.vdom.html_<^._
|
|
import japgolly.scalajs.react.extra._
|
|
import com.example.playscalajsreact.component.HelloWorldSJSRComponent
|
|
import japgolly.scalajs.react.extra.router._
|
|
import japgolly.scalajs.react.extra.router.StaticDsl.Route
|
|
import com.example.playscalajsreact.route.AppRouter
|
|
import com.example.playscalajsreact.component.Content
|
|
import com.example.playscalajsreact.component.Top2
|
|
|
|
object ScalaJSExample {
|
|
|
|
def main(args: Array[String]): Unit = {
|
|
|
|
val div = dom.document.createElement("div")
|
|
dom.document.body.appendChild(div)
|
|
Top2().renderIntoDOM(div)
|
|
|
|
dom.document.getElementById("scalajsShoutOut").textContent =
|
|
SharedMessages.itWorks
|
|
}
|
|
}
|