countersReducers.js 202 Bytes BlameHistoryPermalink Edit 1 2 3 4 5 6 7 8 9 10 export default (state = 0, { type, score }) => { switch (type) { case 'INCREMENT': return state + score case 'DECREMENT': return state - score default: return state } }