diff options
Diffstat (limited to 'examples/build-scalajs/js/src/main/scala/App.scala')
-rw-r--r-- | examples/build-scalajs/js/src/main/scala/App.scala | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/examples/build-scalajs/js/src/main/scala/App.scala b/examples/build-scalajs/js/src/main/scala/App.scala new file mode 100644 index 0000000..2682936 --- /dev/null +++ b/examples/build-scalajs/js/src/main/scala/App.scala @@ -0,0 +1,22 @@ +package prototype + +import japgolly.scalajs.react.ReactDOM +import org.scalajs.dom + +import scala.scalajs.js +import scala.scalajs.js.JSApp +import scala.scalajs.js.annotation.JSExport +import scalajs.js.Dynamic.{global => g} + +/** + * Created by katrin on 2016-04-10. + */ +@JSExport("App") +object App extends JSApp { + + def main(): Unit = { + + val doc = dom.document + ReactDOM.render(Pictures.PictureComponent(), doc.getElementById("main")) + } +} |