Now that airframe-codec support for Scala.js is available, we can easily integrate airframe-http and Scala.js code. So it's time to think about how to build Web UI in Scala.js.
I think what we need will be:
The design policy would be:
- Just use plain Scala + Some HTML and CSS to avoid additional learning cost of using React.js or Vue.js.
- JS community is growing quite fast, so the knowledge we learned today can be outdated one year later. From this perspective, Scala and Scala.js have been stable, so if we can simply use just plain Scala, it will be easier to maintain the code.
- We need to be careful in using the XML syntax because it will be deprecated in Scala 3.0.
Now that airframe-codec support for Scala.js is available, we can easily integrate airframe-http and Scala.js code. So it's time to think about how to build Web UI in Scala.js.
I think what we need will be:
The design policy would be: