client/src/components/Note.js
changeset 1 431977d7c9a6
child 15 4a8bbd314a46
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/client/src/components/Note.js	Mon May 22 14:34:35 2017 +0200
@@ -0,0 +1,16 @@
+import React from 'react';
+import PropTypes from 'prop-types';
+
+const Note = ({note}) => {
+  return (
+    <div id={"note-" + note.id}>
+      {note.text}
+    </div>
+  );
+};
+
+Note.propTypes = {
+  note: PropTypes.object.isRequired
+};
+
+export default Note;