Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 moviedata.js You can complete this project using the techniques covered
in sections and You could instead use createreactapp as your starting point.
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
movie object to SingleMovie. For SingleMovie, you will need to replace the sample data with data
from the passedin movie object. In the footer area, you will render a and pass it the tmdbID
property from the movie object. FIGURE Completed Project MovieForm SingleMovie
MovieList MovieLink poster image poster image poster image poster image poster image poster
image Chapter Summary MovieLink must be a functional component. It will return markup
similar to the following though you will replace with the passed tmdblD value: In the
App component, you will add the component to the render. Be sure to pass it the list of movies in
state. Test. 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. 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 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
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started