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

Leaves - Alice #19

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

Leaves - Alice #19

wants to merge 9 commits into from

Conversation

sun-alice
Copy link

@sun-alice sun-alice 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? When the form is submitted, the information on the form is sent up through the board through the callback function. In the board component, the POST request is sent with the new card information, and the state is updated s well.
What function did you use to make the GET request from the API to get the list of cards? Why use that function? componentDidMount-- this function is called after all elements of the page are rendered, and so it can be used to retrieve data with an API call. This is called every time the elements are rendered, so it can be useful in getting the latest data in the API.
How do snapshot tests differ from unit tests? Snapshot tests just check that a component is rendered properly, or as we expect. Unit tests are used to test for functionality that isn't just based on how a thing looks/is rendered.
What purpose does Enzyme serve in testing a React app? 🤔

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