Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

But that assumes a world where everyone uses Node :)


React server side rendering doesn't require Node. Works just fine with Java 8's Nashorn too.



Awesome news. Not enough resources on Nashorn out there.


Fwiw, i use serverside React rendering with a Golang API server. My JS code has an interface layer which interfaces to browser/node, and on first load a balancer throws the request to Node, which makes local API calls to the api server, and renders it all in node.

Technically i use Node, but only to implement a small interface layer for things like http requests. So i don't really consider it a Node app. The real code is all React and Golang.


Awesome stack. It's exactly what I've started working on lately. I have 2 questions for you :) 1. What router do you use for react as it's necessary if you want multiple entry points into your app ? Rrouter seems promising. 2. How do you elegantly proxy client cookies from your node app to your api ? (both way: read and writes) Thx!


If you've ever used Ember's router and liked it, I'd suggest the react-nested-router[0]. So easy to use

[0] - https://github.com/rpflorence/react-nested-router


Do you happen to have a boilerplate of your stack on github?


It only assumes a world where everyone uses JavaScript. And in this context, "everyone" is web developers, so it's a fair assumption.


maybe not yet, but I just wrote a blog post why in the future here: http://radar.oreilly.com/2014/07/next-generation-web-apps-wi...


100% javascript, that would be living the dream......


Is my sarcasm meter on the blink again?


I don't know, but this subthread is off the charts on the Poe scale.


violent beeping


[deleted]


Woah, where did Haskell come from all of a sudden?


The JSX translation shouldn't be too hard to write a binding. I know that it happened with mustache. Now, it would mean keeping it in sync, but it might not be a bad idea for people outside node and the JVM.


What should we do with all the Javascript code between the brackets?


There's a ASP.NET MVC plugin for server-side rendering of React http://reactjs.net/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: