2017-12-18から1日間の記事一覧
redux-actionsのサンプルコードみてて、 const reducer = handleActions({ [combineActions(increment, decrement)](state, { payload: { amount } }) { return { ...state, counter: state.counter + amount }; } }, defaultState); は?なにこのsyntax??…
redux-actionsのサンプルコードみてて、 const reducer = handleActions({ [combineActions(increment, decrement)](state, { payload: { amount } }) { return { ...state, counter: state.counter + amount }; } }, defaultState); は?なにこのsyntax??…