react, slinky, esbuild and a readme.

This commit is contained in:
fiatjaf
2022-02-22 12:21:47 -03:00
parent fecbf2d940
commit ab841df209
8 changed files with 45 additions and 3 deletions

View File

@@ -1,13 +1,19 @@
package app
import org.scalajs.dom
import org.scalajs.dom.document
import slinky.web.ReactDOM
import slinky.web.html._
object Main {
def main(args: Array[String]): Unit = {
val div = document.createElement("div")
div.id = "main"
div.id = "root"
document.body.appendChild(div)
println("Hello!")
ReactDOM.render(
h1("Hello, world?"),
document.getElementById("root")
)
}
}