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

Branches - Kelsey #30

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

Branches - Kelsey #30

wants to merge 5 commits into from

Conversation

kelsk
Copy link

@kelsk kelsk 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 data is stored in the New Card Form's state, then when the form is submitted that data from state is passed up to the Board through the addCard function in its props. The Board then creates a post request using the data from New Card Form.
What function did you use to make the GET request from the API to get the list of cards? Why use that function? I used componentDidMount, this function executes at the beginning of the component's lifecycle so it renders when the component is created.
How do snapshot tests differ from unit tests? Snapshot tests run a segment of the code they're testing and then compare the results of the snapshot to a new run of the code, while unit tests run the code each time they are called.
What purpose does Enzyme serve in testing a React app? Not sure, but it was created by Airbnb.

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