Re:React v0.11
by arianvanp on Thursday July 17, 2014 @05:19PM
(#8050242)
Great stuff. I really love React. Especially stuff like server-side prerendering of the DOM is extremely cool.
[ Parent
| on HN ]
But that assumes a world where everyone uses Node :)
Re:React v0.11
by swannodette on Thursday July 17, 2014 @05:28PM
(#8050276)
React server side rendering doesn't require Node. Works just fine with Java 8's Nashorn too.
It works with CouchDB too: https://github.com/fiatjaf/reactive-couch
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.
Re:React v0.11
by juliennakache on Thursday July 17, 2014 @11:46PM
(#8051568)
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
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?
Re:React v0.11
by notduncansmith on Thursday July 17, 2014 @07:22PM
(#8050810)
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/