Skip to content

Space Suely & Charlotte#13

Open
FreeMonkey19 wants to merge 11 commits into
Ada-C13:masterfrom
FreeMonkey19:master
Open

Space Suely & Charlotte#13
FreeMonkey19 wants to merge 11 commits into
Ada-C13:masterfrom
FreeMonkey19:master

Conversation

@FreeMonkey19

@FreeMonkey19 FreeMonkey19 commented Apr 26, 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? App passes the URL and board name to Board. Board keeps the state which includes the card list. Board passes card data to Card, plus a callback for the deletes. Board also passes a callback to NewCardForm. Form keeps the state for the inputs and calls back to add a new card.
What function did you use to make the GET request from the API to get the list of cards? useEffect is used to update and re-render or unmount. Why use that function? The App will mount then we use useEffect to get api data.
How do snapshot tests differ from unit tests? Snapshots come after the code is written. Unit tests we write before we write the code.
What purpose does Enzyme serve in testing a React app? Enzyme mimics the DOM in a flexible and simple way - making testing easier. One of the most awaited features (hooks) introduced in javaScript recently.

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