client/src/components/Note.js
changeset 15 4a8bbd314a46
parent 1 431977d7c9a6
child 16 e67cd18cc594
equal deleted inserted replaced
14:df6780e48eb5 15:4a8bbd314a46
     2 import PropTypes from 'prop-types';
     2 import PropTypes from 'prop-types';
     3 
     3 
     4 const Note = ({note}) => {
     4 const Note = ({note}) => {
     5   return (
     5   return (
     6     <div id={"note-" + note.id}>
     6     <div id={"note-" + note.id}>
     7       {note.text}
     7       {note.plain}
     8     </div>
     8     </div>
     9   );
     9   );
    10 };
    10 };
    11 
    11 
    12 Note.propTypes = {
    12 Note.propTypes = {