As a user, I should see all the diary posts in my diary component ( my posts are only visible to me the user). The most recent post should be at the top of the page.
Acceptance Criteria
GIVEN a user comes to the site
WHEN they look at the diary component
THEN they should see all posts from their own user exclusively
GIVEN a user is viewing, or entering in posts
WHEN a new post is entered by that user
THEN the most recent post should always be made visible at the top of the diary history
Developer Notes
Create diaryDomString function that contains the entry, id, date, and title
Print the diaryDomString to the id entry located in HTML
add a Axios GET request to DiaryData.js that gets the diary.json data
export the Axios Get function and import it into the diary.js file
User Story
As a user, I should see all the diary posts in my diary component ( my posts are only visible to me the user). The most recent post should be at the top of the page.
Acceptance Criteria
GIVEN a user comes to the site WHEN they look at the diary component THEN they should see all posts from their own user exclusively GIVEN a user is viewing, or entering in posts WHEN a new post is entered by that user THEN the most recent post should always be made visible at the top of the diary history
Developer Notes
diaryDomString
function that contains the entry, id, date, and titlediaryDomString
to the identry
located in HTML