Sha256: 6a5042e63df48aaa0d25952d864ff6648b6b9dfbabf4e4e4da9c11e7206aaa93
Contents?: true
Size: 507 Bytes
Versions: 53
Compression:
Stored size: 507 Bytes
Contents
import Immutable from 'immutable'; import 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
53 entries across 53 versions & 1 rubygems