Answered step by step
Verified Expert Solution
Link Copied!

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 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
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Horse Betting The Road To Absolute Horse Racing 2

Authors: NAKAGAWA,YUKIO

1st Edition

B0CFZN219G, 979-8856410593

More Books

Students also viewed these Databases questions

Question

Does SDT apply more to certain workers than to others?

Answered: 1 week ago

Question

What is DDL?

Answered: 1 week ago