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