- Replace
<your_account>
with your Github username in the DEMO LINK - Follow the React task guideline
Implement an application with 5 components PostList
, PostInfo
, UserInfo
,
CommentList
and CommentInfo
displaying posts with comments and user details.
-
Create a
preparedPosts
array in the App with eachpost
having a link to auser
andcomments
array. And pass it to thePostList
. -
The
PostInfo
accepts apost
object (withuser
andcomments
properties added before) and renders atitle
, abody
, aUserInfo
and aCommentList
.- Please, add
data-cy="post-title"
, anddata-cy="post-body"
attributes totitle
andbody
elements. - Please, add
data-cy="post-info"
to the maindiv
of the component
- Please, add
-
The
UserInfo
accepts auser
object and renders at least aname
and anemail
.- Please, add
data-cy="user-name"
anddata-cy="user-email"
attributes toname
andemail
elements.
- Please, add
-
The
CommentInfo
accepts acomment
object and renders aname
, abody
, and anemail
.- Please, add
data-cy="comment-name"
,data-cy="comment-body"
, anddata-cy="comment-email"
attributes toname
,body
andemail
elements.
- Please, add