Skip to content

Instantly share code, notes, and snippets.

@gbakernet
gbakernet / configureStore.js
Last active February 23, 2017 02:22
Thought Experiment using redux-saga to do react server side rendering with express
import { createStore } from "redux"
// Simple Reducer for mock data
export default () => {
const reducer = (state = {}, action) => {
switch (action.type) {
case "DATA_LOADED":
return { heading: `Hello World! ${Date.now()}` }
default:
return state