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

L - Daniela #28

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

L - Daniela #28

wants to merge 6 commits into from

Conversation

dnsanche
Copy link

@dnsanche dnsanche commented Dec 16, 2019

Inspiration Board

Congratulations! You're submitting your assignment!

Comprehension Questions

Question Answer
What is the flow of data from input on the form to being a new card on the board? The input changes the state of the Card class through the onChange method. Then, the submit button, takes the event and creates a new hash with same key, values in the state. Then, it calls back the "Add Card" function in the Board Component which creates a post request in the API and reset the values in the state of the Card component.
What function did you use to make the GET request from the API to get the list of cards? Why use that function? componentDidMount(). It is a lifecycle method that is good to load data from an API because this method is invoked immediately after a component is mounted (inserted into the tree).
How do snapshot tests differ from unit tests?
What purpose does Enzyme serve in testing a React app?

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.

1 participant