1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
package reading import org.scalajs.dom import rx._ import rx.Ctx.Owner.Unsafe._ import scala.scalajs.js.JSApp import reading.utils.RxUtils._ object Main extends JSApp { def main(): Unit = { dom.document.body.appendChild( Rx { Route.current() match { case Route.Books(filters, detail) => component.Index(filters, detail) } }.render ) () } }