Slinky A Modern Toolkit for Modern Apps
summary
Slinky lets Scala.js apps drive React UIs and native apps using SBT, Scala.js bundler, npm/webpack and external React libraries (react-router, Apollo, styled-components, react-three). It compiles Scala to plain JS, uses an @react macro to generate component wrappers, derives writer/reader via Magnolia to interop with JS props, and preserves state across updates for hot reloading. Examples: a live input validator, an iOS React Native build, and a large app ~800 KB gzipped (site payload ~684 KB gzipped). Compile edits take ~2–3s for small apps.
AI-written summary · about
chapters (17)
- 0:00Intro
- 0:32Why Slinky
- 2:48The problem
- 3:04React
- 3:46React Structure
- 4:17React JavaScript
- 6:27What is Scala
- 7:24Advantages of Scala
- 9:57Slinky
- 10:21What Slinky Does
- 11:44Lets Write Some Code
- 19:20HTML
- 23:46External Components
- 29:09Demo
- 39:20React Interrupt
- 40:07Conclusion
- 40:52Slinky Docks
related talks
40mMy Scala application from head to toe
50mScala.js, Scala.CSS and React: the Story of a Discovery
57mReact to ScalaJS
34mIntegrating React with Scala...
32mTaming complex webapps with Scala and React
28mReact's Odyssey: Harnessing the Titans of Animation and Performance
41mReasonML: React as a Language and what the Future looks like
16m/react Makes Slack
