Elixir and React server side rendering


I’d like to use a Redux app in front and communicate with my Phoenix app using channels. The thing is, my React app should be rendered serverside.

Is there any way to do this using Elixir? So far I’ve only found this one article, but I couldn’t get it to work using elixir 1.3.2, probably because of the std_json_io.


Hi, probably u ran into the same situation and this can help you as well: https://medium.com/@chvanikoff/hey-dan-f1d444431169#.8w9apjsy0
Also, I’d like to mention that the tutorial overall is still actual talking about Phoenix+React in general. Some particular parts like this can cause issues, but the main idea of server rendering can still be used in such case.
Regarding std_json_io - it shouldn’t cause any issues unless you are trying to generate a page larger than 65536 bytes or you hate annoying warnings. If that’s the case, you can switch to using my fork - chvanikoff/std_json_io untill original app is updated.