Skip to content

Time - Alicia and Emily#25

Open
aecombs wants to merge 7 commits into
Ada-C13:masterfrom
aecombs:master
Open

Time - Alicia and Emily#25
aecombs wants to merge 7 commits into
Ada-C13:masterfrom
aecombs:master

Conversation

@aecombs

@aecombs aecombs commented Apr 28, 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? When onFormSubmit is called, it called addCardCallback. The callback goes to the Board component and calls addCard which does an API post request. This changes are caught by the useEffect hook, which re-renders our board with all the new card included.
What function did you use to make the GET request from the API to get the list of cards? Why use that function? Our API get request is within our useEffect hook. It allows us to render our board and track any changes made to it.
How do snapshot tests differ from unit tests? Snapshot tests require you to have a completed website before it can be used. It's a copy of the HTML as opposed to a program that runs our code using specified parameters.
What purpose does Enzyme serve in testing a React app? It helps us to render our components, find elements, and interact with said elements during testing.

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