You are given movies loaded from the API and initial markup. Your task is to:
- Create and export a
Movie
interface inside./src/types/Movie.ts
(all the fields are required) - Render movies from a given
moviesFromServer
array (for the simplicity, you can do it inside theApp
and split later). - Extract a
.movies
block to aMoviesList
component. - The
App
should pass themoviesFromServer
to theMoviesList
as amovies
prop. - Extract a
.card
block to aMovieCard
component. - The
MoviesList
should pass amovie
to theMovieCard
. - Keep all
data-cy
attributes to pass the tests.
- Implement a solution following the React task guideline.
- Use the React TypeScript cheat sheet.
- 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.