~/talk

Getting started with Scala.js, Laminar and Vite

Talkat ScalaIO 2022 · 2022-10-27..10-28· [scala, frontend-architecture]
slides:none on file

Builds a small Scala.js app end to end and demonstrates a live editable bar chart that actually works: sbt fastLinkJS in watch mode wires to Vite for a fast save-refresh cycle, Laminar handles UI with explicit FRP primitives (Vars, Signals, map, split with id key to preserve DOM and selection), Chart.js renders on a canvas with mount/unmount callbacks, and ScalablyTyped provides static facades so Chart.js is used safely at runtime via ScalablyTyped facades.

AI-written summary · about

  1. 0:00Scala.js, Laminar and Vite intro
  2. 1:27Vite live reloading setup
  3. 3:39SBT config for Scala.js + Vite
  4. 6:53Scala.js main with DOM types
  5. 8:18Live coding Scala.js + Vite
  6. 9:46Laminar UI integration
  7. 11:59Live editable bar chart
  8. 13:27Laminar vars and signals
  9. 16:04Functional reactive programming with signals
  10. 17:29Rendering data in Laminar
  11. 20:00DOM state with split
  12. 24:01Chart.js with Scala.js/Laminar
  13. 28:27Chart.js dynamic updates
  14. 30:37Input bindings for labels
  15. 32:27Refactoring with updaters
  16. 34:59Reusable UI components
  17. 37:13Editing doubles with state
  18. 38:36Final live bar chart demo
  19. 38:57Summary & Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.