Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laura and Jane video-store-consumer #16

Open
wants to merge 34 commits into
base: master
Choose a base branch
from

Conversation

JaneEdwMcN
Copy link

Video Store Consumer

Congratulations! You're submitting your assignment!

Comprehension Questions

Question Answer
Paste a link to the PR for your API Ada-C10/VideoStoreConsumer-API#19
For each person in your pair, describe something you learned from your partner during this project
What was one area of React you gained more clarity on during this assignment? We learned how setState re-renders every key/pair of the state that has been changed regardless of whether that part of the state has been declared specifically in the setState function.
Describe how you solved the problem of having lists of movies that look mostly the same but have different content The movie list API call returns information about a Movie instance and the overdue list returns information about a Rental instance. After we determined this, we edited the overdue method in the API to display the same information as the movie index method and created a Rental component to display that information on the frontend.
Describe how you handled rentals with React We created event handlers to select customer and movies and created methods to send methods to send an overdue API call.
Describe a DOM event your application handled We added an onClick method to a button on the MovieList component which is called in the VideoStore component. Laura solved this by figuring out how to add props to a React Router component. This was how we passed the info to the VideoStore state which displays which movie has been selected.
Did you use any functional stateless components? What for? Movie, Customer, and Rental components do not have state. The data for these components come in as props and are not changed at the child component.
Did you use any container components? What for? We created a VideoStore component to manage the creation and data sent to the presentation components.
Do you have any recommendations on how we could improve this project for the next cohort?

JaneEdwMcN and others added 30 commits December 17, 2018 14:31
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