4 ms·
React + some sort sort of library to handle app state (Redux is recommended). You gain a modern componentised frontend app and the ability to render it server s
by Wintamute 11y ago
React + some sort sort of library to handle app state (Redux is recommended). You gain a modern componentised frontend app and the ability to render it server side. Server rendering of a React app is pretty simple, of order maybe a 100 lines of code or so. And that includes populating the server rendered pages from the same API as the frontend uses. Redux docs may be a decent place to start:
http://rackt.github.io/redux/docs/recipes/ServerRendering.html http://rackt.github.io/redux/docs/recipes/ServerRendering.ht...