Re:Scala.js 1.0.0-RC1
by Nullabillity on Tuesday November 26, 2019 @12:24PM
(#21640392)
In general I'd advise against using Scala.js for libraries. The Scala.js runtime is pretty heavy, and Scala's and TypeScript's type systems are different enough that it tends to be difficult to design an API that feels native in both.
Have you considered ScalaJS-React[0] or Outwatch[1] instead?
Why GraphQL? Why not simply RPC?
E.g. for JS there is https://github.com/reframejs/wildcard-api. Is there something like that in Scala?
Have you had any success using Scala.js-generated JavaScript in TypeScript projects?
I'm quite interested in a full stack of create-react-app + TypeScript + graphQL + front end libraries written in Scala + back end services written in Scala.