React Redux

export const exampleReducer = (state: State, action: Action) => {
    switch (action.type) {
        case 'SET_COUNT':
            return {
                ...state,
                count: action.payload
            };
        default:
            return state;
    }
};

ref

What Else?