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

video-store-katherine-kay #13

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

video-store-katherine-kay #13

wants to merge 45 commits into from

Conversation

kayxn23
Copy link

@kayxn23 kayxn23 commented Dec 21, 2018

Video Store Consumer

Congratulations! You're submitting your assignment!

Comprehension Questions

Question Answer
Paste a link to the PR for your API
For each person in your pair, describe something you learned from your partner during this project Kay: I learned how to create a callback function that handles the click on a single movie in all the way up to the App. Katherine: I learned how to configure data as params to send to rails from my partner and how to integrate Flash alerts from Rails
What was one area of React you gained more clarity on during this assignment? Kay: How React can talk to a Rails server via axios.post axios.get, more specifically post information and get information from the server to update the single page application. Katherine: How to pass data from child to parent using callbacks to a higher-level component that manages the state of that data.
Describe how you solved the problem of having lists of movies that look mostly the same but have different content It wasn't really an issue for us because we displayed the images of each movie, so even if it had a similar title it wasn't confusing.
Describe how you handled rentals with React We created callback functions to select a specific movie and specific customer that bubbled up to the App where they were represented in App's state. This way, we passed the state (selectedCustomer & selected movie) within the URL and as params into our axios.post function that called the checkout function in the Rails API.
Describe a DOM event your application handled Displaying a list of customers is handled by a click handler on the customer button. The callback function called displayCustomer in our CustomersCollection component that would call our Rails API and display the list of customers.
Did you use any functional stateless components? What for? Movie, Customer both don't have states.
Did you use any container components? What for? No
Do you have any recommendations on how we could improve this project for the next cohort?

kayxn23 and others added 30 commits December 17, 2018 16:22
CustomerCollection and Axios get
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