When you use React.renderComponentToString(component) in React you can prerender the DOM to html in such way that you can send the pre-rendered HTML to the client and then 'hook' to the pre-rendered DOM as if it was generated on the client itself.
You can even take this a step further with the ReactAsync package and do stuff like XHR on the serverside aswell and prerender those elements that depend on asynchronously loaded content into the DOM.
Example: https://github.com/andreypopp/react-quickstart
I was wondering if something like this would be worth exploring in shade. It would be extremely cool.
When you use
React.renderComponentToString(component)in React you can prerender the DOM to html in such way that you can send the pre-rendered HTML to the client and then 'hook' to the pre-rendered DOM as if it was generated on the client itself.You can even take this a step further with the ReactAsync package and do stuff like XHR on the serverside aswell and prerender those elements that depend on asynchronously loaded content into the DOM.
Example: https://github.com/andreypopp/react-quickstart
I was wondering if something like this would be worth exploring in shade. It would be extremely cool.