Skip to content

Christina- Inspiration Board#34

Open
Peacegypsy wants to merge 13 commits intoAda-C10:masterfrom
Peacegypsy:master
Open

Christina- Inspiration Board#34
Peacegypsy wants to merge 13 commits intoAda-C10:masterfrom
Peacegypsy:master

Conversation

@Peacegypsy
Copy link

Inspiration Board

Congratulations! You're submitting your assignment!

Comprehension Questions

Question Answer
Explain the steps in creating a new Card from the form. i set up the initial state in the NewCardForm class, along with Reset State, FormChange, and OnSubmit. The info added to the form updates the state and OnSubmit contains the callback to the addCard function in the Board class, which sends a post request and updates the CardList.
How did you learn how to use the API? By playing around on Postman first to see what the response was.
What function did you use to place the GET request from the API to get the list of cards? Why use that function? ComponentDidMount because it is invoked immediately after a component is mounted (inserted into the tree). Initialization that requires DOM nodes should go here.
Explain the purpose of a Snapshot test. To make sure your UI does not change unexpectedly by rendering a UI component, taking a screenshot, then comparing it to a reference image stored alongside the test. The test will fail if the two images do not match
What purpose does Enzyme serve in testing a React app? it allows you to pass your Enzyme wrapper as the first parameter and snapshot test the returned value.

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