Skip to content

Render DOM on the serverside #2

Description

@arianvp

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions