Write Scala.js React apps just like you would in ES6
Get started at slinky.dev
Slinky is a framework for writing React apps in Scala with an experience just like using ES6.
Slinky lets you:
- Write React components in Scala with an API that mirrors vanilla React
- Implement interfaces to other React libraries with automatic conversions between Scala and JS types
- Write apps for React Native and React 360, including the ability to share code with web apps
- Develop apps iteratively with included hot-reloading support
Slinky is split up into several submodules:
core
contains the React.js facades and APIs for creating components and interfaces to external componentsweb
contains bindings to React DOM and definitions for the HTML/SVG tag APIreactrouter
contains bindings to React Routerhistory
contains a facade for the HTML5 history APInative
contains bindings to React Native and external component definitions for native UI elementsvr
contains bindings to React 360 and external component definitions for VR UI elementsreadWrite
contains theReader
andWriter
typeclasses used to persist state for hot reloadinghot
contains the entrypoint for enabling hot-reloadingscalajsReactInterop
implements automatic conversions between Slinky and Scala.js React typestestRenderer
contains bindings toreact-test-renderer
for unit testing componentscoreIntellijSupport
contains IntelliJ-specific support for the@react
macro annotationtests
contains the unit tests for the above modules (except native and vr which have local tests)docs
anddocsMacros
contains the documentation site, which is a Slinky app itself
To run the main unit tests, run sbt tests/test
.