Implement the Article
component that takes title
, date
, and text
as props
and render them using the given markup. The App
should render an Article
with
the data from the firstArticle
object.
title
is a text fordata-cy="title"
;date
should be added in the next format, (you have an example of how to do it in the initial code):<time datetime="2022-09-08" data-cy="date"> September 8, 2022 </time>
text
should be rendered insidedata-cy="text"
- Implement a solution following the React task guideline.
- Open one more terminal and run tests with
npm test
to ensure your solution is correct. - Replace
<your_account>
with your Github username in the DEMO LINK and add it to the PR description.