An open API service indexing awesome lists of open source software.

https://github.com/dpostolachi/react-serverside-render-example

This is an example of React Server Side Rendering
https://github.com/dpostolachi/react-serverside-render-example

example koa koajs react react-router react-server-render redux server-side-rendering

Last synced: 4 months ago
JSON representation

This is an example of React Server Side Rendering

Awesome Lists containing this project

README

        

# react-serverside-render-example
This is an example of React Server Side Rendering with Koa as Server, Redux and React-router, it does asynchronus actions before rendering and passes server side state to html so it can be setted as initial state for redux in client, it requires Node.js V.8+ for async functions. It has a webpack config that handles stylus and css files and that generates the client script for handling react components.

NPM Scripts:

web - for running server.

prod - for running server in production.

buid - builds client script for production.

watch - runs webpack watch in development.