nss-evening-cohort-7 / chatty-papaphobia

chatty-papaphobia created by GitHub Classroom
1 stars 2 forks source link

Messages #11

Closed jessrod11 closed 6 years ago

jessrod11 commented 6 years ago

Story

“As a user, one should see 5 messages on page load, a delete button added to each, and an input field that holds information to add to the message field."

Acceptance Criteria

  1. When the page is first loaded, you must load 5 messages from a local JSON file and pre-fill a message area <div> below the input field that will also hold all new messages as they get created.
  2. Then when the user presses the return key in the message field, the new message should be inserted into the message area.
  3. And the message should have a button displayed after it with the text "Delete" inside of it.
  4. And When the delete button next to a message is clicked, only that message should be removed from the DOM.

Technical Notes