Challenge: Render a Movie List
Swipe to show menu
Task
Render a list of movies using the map() method.
The MovieList component must include:
-
A
ulelement. -
Render a
lielement for each movie inside themoviesarray usingmap(). -
Each
lielement must:- Display the movie title.
- Include a unique
keyprop equal tomovie.id.
The App component already passes the moviesData array to the MovieList component.
Starter Code
Open the starter project below and complete the missing parts of the component.
Everything was clear?
Thanks for your feedback!
Section 2. Chapter 6
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Section 2. Chapter 6