salsita / prism

React / Redux action composition made simple http://salsita.github.io/prism/
495 stars 24 forks source link

Server-side rendering #30

Closed kibin closed 8 years ago

kibin commented 8 years ago

I was looking at this project and while I was reading docs on gitbook I liked the idea, but had concerns with router and ssr. While I found issue with examples of router integration, I didn’t find anything about server-side rendering. Is it possible? Is there any tutorial on this?

kibin commented 8 years ago

I found this comment (OT answer part) in an unrelated issue, so I guess it’s possible to do server-side rendering with redux-elm. So the main question that remains: how do you do it?

tomkis commented 8 years ago

Yes it's indeed possible, the implementation is pretty straightforward and done like in any other redux project.

So here is our company boilerplate which supports server side render as well as react-native client. The specific part related to server side render is here.