Open
Description
export default handleActions({ [type['INCREMENT']]: (state) => ({...state,value: state.value + 1}), [type['INCREMENT_IF_ODD']]: (state) => ({...state, value: (state.value % 2 !== 0) ? state.value + 1 : state.value}), [type['DECREMENT']]: (state) => ({...state, value: state.value - 1}) }, { value: 2 })
type['INCREMENT'] is Symbol() , it's false.but type['INCREMENT'] is string, it's true.Why?
Metadata
Metadata
Assignees
Labels
No labels