client/src/actions/notes-actions.js
changeset 1 431977d7c9a6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/client/src/actions/notes-actions.js	Mon May 22 14:34:35 2017 +0200
@@ -0,0 +1,13 @@
+import * as types from './action-types';
+
+import uuidV1 from 'uuid/v1';
+
+export const addNote = (noteText) => {
+  return {
+    type: types.ADD_NOTE,
+    note: {
+      id: uuidV1(),
+      text: noteText
+    }
+  };
+}