Reusable scalajs-react components
See the codeReusable scalajs-react components.
We are trying to make the experience of using javascript components in scala.js as good as possible by adding typed wrappers.
Adding types to javascript is a lot of guesswork, and we're certain to have gotten them wrong some places. Bug reports and/or pull requests are very much welcome! :)
These components require you to provide javascript yourself.
apply even when components dont have children:MuiRaisedButton(label = "label")()
Add these dependencies to you sbt build file
libraryDependencies ++= Seq(
"com.github.japgolly.scalajs-react" %%% "core" % "1.1.0",
"com.github.japgolly.scalajs-react" %%% "extra" % "1.1.0",
"com.olvind" %%% "scalajs-react-components" % "1.0.0-M2"
)
This repository includes an example project, by all means use it as a template for your own.
In order to use the scala.js components, you need to make sure you load their CSS:
GlobalRegistry.register(<component>.Style)
See here for more details
Online :
http://chandu0101.github.io/scalajs-react-components
Local : This will start a web server on http://localhost:8080
sbt
fastOptJS::webpack
demo/compile:fastOptJS::startWebpackDevServer
We've included an example project to give you an idea how to use the components
Scala
91.9%
JavaScript
7.4%
Reusable scalajs-react components
See the codeReusable scalajs-react components.
We are trying to make the experience of using javascript components in scala.js as good as possible by adding typed wrappers.
Adding types to javascript is a lot of guesswork, and we're certain to have gotten them wrong some places. Bug reports and/or pull requests are very much welcome! :)
These components require you to provide javascript yourself.
apply even when components dont have children:MuiRaisedButton(label = "label")()
Add these dependencies to you sbt build file
libraryDependencies ++= Seq(
"com.github.japgolly.scalajs-react" %%% "core" % "1.1.0",
"com.github.japgolly.scalajs-react" %%% "extra" % "1.1.0",
"com.olvind" %%% "scalajs-react-components" % "1.0.0-M2"
)
This repository includes an example project, by all means use it as a template for your own.
In order to use the scala.js components, you need to make sure you load their CSS:
GlobalRegistry.register(<component>.Style)
See here for more details
Online :
http://chandu0101.github.io/scalajs-react-components
Local : This will start a web server on http://localhost:8080
sbt
fastOptJS::webpack
demo/compile:fastOptJS::startWebpackDevServer
We've included an example project to give you an idea how to use the components
Scala
91.9%
JavaScript
7.4%