This is the code for this Blog: https://pme123.medium.com/slinky-doing-react-the-scala-way-f78ccf42bf8f
- Using this React example: AJAX and APIs
- Handle JSON with uPickle.
First version is using a stateful Component - see Commit
Second version is using a functional Component with Hooks - see Commit
It is build from the starter project from Slinky.
sbt new shadaj/create-react-scala-app.g8
So use:
dev
: for development incl. hot reloading.
build
: for bundling