Sha256: bf3f0388bcce4db7f10b2837a1dfcec5fa54f0c2a451d4dbe5eed256c1223f56
Contents?: true
Size: 528 Bytes
Versions: 10
Compression:
Stored size: 528 Bytes
Contents
import Immutable from 'immutable'; import * as actionTypes from '../constants/helloWorldConstants'; export const $$initialState = Immutable.fromJS({ name: '', // this is the default state that would be used if one were not passed into the store }); export default function helloWorldReducer($$state = $$initialState, action) { const { type, name } = action; switch (type) { case actionTypes.HELLO_WORLD_NAME_UPDATE: { return $$state.set('name', name); } default: { return $$state; } } }
Version data entries
10 entries across 10 versions & 1 rubygems