diff --git a/README.md b/README.md index 7c9a2b86e..b8767524f 100644 --- a/README.md +++ b/README.md @@ -1,30 +1,36 @@ -# React dynamic list of Posts -- Replace `` with your Github username in the - [DEMO LINK](https://.github.io/react_dynamic-list-of-posts/) -- Follow the [React task guideline](https://github.com/mate-academy/react_task-guideline#react-tasks-guideline) -- Use [React TypeScript cheat sheet](https://mate-academy.github.io/fe-program/js/extra/react-typescript) +# React Dynamic List of Posts -## Task -You are given a basic markup and [the API](https://mate-academy.github.io/fe-students-api/). +Implement the App with ability to show posts of a selected user. Each post can +be opened in the sidebar with its comments. There should delete a comment and a +form to add new comments. -Implement the app to manage post comments. +> Here is [the working version](https://mate-academy.github.io/react_dynamic-list-of-posts/) -> Don't use class components. Use React Hooks instead. - -1. Create an `/src/api/posts.ts` and add a method `getUserPosts(userId)` there. -2. Load `posts` and show them using the `PostsList` on page load (use `useEffect` as a `componentDidMount`). You should add `data-cy="postDetails"` attribute to the `PostsList` `