diff -r b52921a63e77 -r 3b5d37d84cfe client/src/actions/notesActions.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/client/src/actions/notesActions.js Tue May 23 13:15:34 2017 +0200 @@ -0,0 +1,13 @@ +import uuidV1 from 'uuid/v1'; + +import * as types from '../constants/actionTypes'; + +export const addNote = (noteText) => { + return { + type: types.ADD_NOTE, + note: { + id: uuidV1(), + text: noteText + } + }; +}