ssorallen / react-play Goto Github PK
View Code? Open in Web Editor NEWRender React components in the Play Framework with JDK8's JavaScript engine
License: MIT License
Render React components in the Play Framework with JDK8's JavaScript engine
License: MIT License
The sbt version (play run) and play framework versions are both relatively old.
Is there any specific reason?
Have you ever tested in production? After you run sbt stage
, all the assets are no longer available at val a = getClass.getResourceAsStream("target/web/public/main/javascripts/bundle.js")
, but instead packaged in a jar file.
As of Play 2.3.6, it more accurately chooses its class loader which should prevent the null
workaround when trying to find the Nashorn JS engine. Test if that hypothesis is true and remove the null argument if it is no longer needed.
The class loader fix: playframework/playframework#3420
Hi,
Have you done any performance tests? Do you know how fast is React.js server side in comparison to in the browser? (You don't happen to have any performance tips?)
I'm running React server side too (Java 8u60 & Play Framework) in my web app, and React + Nashorn is 10x slower than React + Chrome: in Chrome, React renders the markup for a large page in 0.3 seconds (with no pre-rendered HTML from the server, otherwise it's a bit faster), server side, it takes 3 seconds.
Best regards, KajMagnus
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.