diff -r b52921a63e77 -r 3b5d37d84cfe client/src/reducers/notesReducer.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/src/reducers/notesReducer.js Tue May 23 13:15:34 2017 +0200 @@ -0,0 +1,14 @@ +import Immutable from 'immutable'; + +import * as types from '../constants/actionTypes'; +import noteRecord from '../store/noteRecord'; + + +export default (state = Immutable.List([]), action) => { + switch (action.type) { + case types.ADD_NOTE: + return state.push(new noteRecord(action.note)); + default: + return state; + } +};