Skip to content

Time - Angela & Vicki #4

Open
vwhwang wants to merge 10 commits into
Ada-C13:masterfrom
vwhwang:master
Open

Time - Angela & Vicki #4
vwhwang wants to merge 10 commits into
Ada-C13:masterfrom
vwhwang:master

Conversation

@vwhwang

@vwhwang vwhwang commented Apr 24, 2020

Copy link
Copy Markdown

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? user inputs to form fields, form field event handlers update form data in state. User submit form data. Submit event handler post new card via API call. update state for cards data. cards get re-render.
What function did you use to make the GET request from the API to get the list of cards? Why use that function? fetchcards function. We use this function so that we can reuse it in two spots: first it's use UseEffect, second, it is used whenever user submits a new card.
How do snapshot tests differ from unit tests? we can't use snapshot to do TDD, because the code needs to be written first.
What purpose does Enzyme serve in testing a React app? Enzyme makes it easier to look at our output and reference it in our test.

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