Skip to content

Hannah and Jessica#20

Open
seaweeddol wants to merge 98 commits into
Ada-C13:masterfrom
seaweeddol:master
Open

Hannah and Jessica#20
seaweeddol wants to merge 98 commits into
Ada-C13:masterfrom
seaweeddol:master

Conversation

@seaweeddol

Copy link
Copy Markdown

Video Store Consumer

Congratulations! You're submitting your assignment!

Comprehension Questions

Question Answer
Paste a link to the PR for your API Ada-C13/video-store-consumer-api#13
For each person in your pair, describe something you learned from your partner during this project Hannah: I learned from Jessica how to implement a search function and how to use the useEffect more efficiently.
Jessica: I learned how to create a "flash" message in React and how to do React Routes from Hannah!
What was one area of React you gained more clarity on during this assignment? Hannah: I gained more clarity about making a route in React.
Jessica: I learned how to utilize useEffect and callbacks better.
Describe how you solved the problem of having lists of movies that look mostly the same but have different content We sent a different callback to the Movie component from their containers (search/library). The Search container passed down the "addMovie" callback, and the Library container passed down the "selectMovie" callback. This way we were able to have just one Movie component that did different things depending on what page it's one.
Describe how you handled rentals with React We used the useState hook to save selectedCustomer and selectedMovie data. Once a user selects 2 data and clicks on the make rental button, the makeRental function will be invoked. From there, it will create a new Rental and make an axios.post call to save the info on API.
Describe a DOM event your application handled When a user searches for a movie title to add them from external API to internal API, DOM listens to the user's action and the onInputchange function gets an event.target.value from there.
Did you use any functional stateless components? What for? Our Movie component is a functional stateless component. It gets all of its data from props and renders a single movie.
Did you use any container components? What for? I think the Library and Customers components would be container components, because they just get all of the movies and customers, and then render the Movie and Customer components.
Do you have any recommendations on how we could improve this project for the next cohort? I wish we could learn how to deploy API with AWS. Also, it would be beneficial for students if we could see a demo before starting the project.

Hannah0124 and others added 30 commits June 22, 2020 12:14
add form for submitting search and console.log data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants