I was reading through https://blog.scalac.io/binding-scala.html#scalajs-ui
and it seems that the way to reference elements is by using the id of the element which is exposed as a local symbol through @dom
. This compiles fine for me but the issue I have is that I haven't found any way to make this work inside IntelliJ. Is there any other way to reference elements that will type-check in IntelliJ (even by making a local variable if necessary) ?