Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Would highly recommend pairing this with Slinky (React for Scala.js).

https://slinky.dev



I'm disappointed that the (formerly?) built-in Scala XML handling could not be used for JSX vs these:

Slinky:

   div(
      h3("TODO"),
      TodoList(items = state.items),
      form(onSubmit := (handleSubmit(_)))(
        input(
          onChange := (handleChange(_)),
          value := state.text
        ),
        button(s"Add #${state.items.size + 1}")
      )
    )
scalajs-react:

    <.div(
      NoArgs(),
      Hello("John"),
      Hello("Jane"))


If you're into JSX, then probably Bindings.scala is a better fit for you:

https://github.com/ThoughtWorksInc/Binding.scala#step-3-crea...


Looks awesome, thank you!


Do you know how that compares with ...

https://github.com/japgolly/scalajs-react




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: