Question: The starting of the components and their render ( ) methods have been provided. The data is contained within the file movie - data.js .

The starting of the components and their render() methods have been provided. The data is
contained within the file movie-data.js. You can complete this project using the techniques covered
in sections 11.2 and 11.3. You could instead use create-react-app as your starting point. 2.
Implement the rest of the MovieList, SingleMovie, and MovieLink components. For MovieList, you
will need to render a for each movie in the passed list of movies using map?.Youwillneedtopassa?
movie object to SingleMovie. For SingleMovie, you will need to replace the sample data with data
from the passed-in movie object. In the footer area, you will render a and pass it the tmdbID
property from the movie object. FIGURE 11.20 Completed Project 1 MovieForm SingleMovie
MovieList MovieLink poster image poster image poster image poster image poster image poster
image 11.7 Chapter Summary 599 MovieLink must be a functional component. It will return markup
similar to the following (though you will replace 1366 with the passed tmdblD value): ,3. In the
App component, you will add the component to the render. Be sure to pass it the list of movies in
state. Test. 4. In the App component, use map() to output a for each movie. Be sure to pass both
index and key values to each MovieForm. Also pass the saveChanges method to each MovieForm.
Test. 5. Make MovieForm a Controlled Form Component. This will require creating some type of
handler method within MovieForm that will call the saveChanges method that has been passed in
(see also next step).6. Implement saveChanges in the App component. Notice that it expects a
movie object that contains within it the new data. Your method will use the index to replace the
movie object from the movies data with the new data, and then update the state. Test.
[C
 The starting of the components and their render() methods have been

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!