client/src/components/Note.js
author ymh <ymh.work@gmail.com>
Mon, 22 May 2017 17:59:19 +0200
changeset 2 b52921a63e77
parent 1 431977d7c9a6
child 15 4a8bbd314a46
permissions -rw-r--r--
add scss + bootstrap

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;