Interop with scalajs-react
If you're using Slinky in an application that's already using scalajs-react, Slinky comes with the
slinky-scalajsreact-interop module for crossing over between the two styles of writing React code.
To use this module, simply import the implicit conversions between Slinky and scalajs-react types.
Then use the converters
.toScalaJSReact to convert React elements from each library to the other.
This makes it possible to use Slinky components from scalajs-react and vice-versa. For example, the following code can now work: