Skip to content

janua/react-serverside-play

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Serverside in Play

This is just a small example of react being rendered by the server in Scala using Nashorn and play.

The main part of the DOM is completely rendered by react on the server.

In the case of no javascript, it accepts form POSTS, otherwise it just uses standard ajax.

Requirements

You need JDK 8 which has Nashorn included with it.

A browser with the fetch API. I have not included a polyfill for this.

Run

Go to root directory, then:

sbt

run

You can now hit the app on http://locahost:9000/.

Try using it with and without javascript.

About

React rendered by Nashorn and Play

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published