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

Sockets - Evelynn #30

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

Conversation

evelynnkaplan
Copy link

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? The NewCardForm holds default values in its state for the emoji and text. As the emoji and text are changed by the user, those values are updated to reflect the user's choices. When the user clicks submit, those values in the state of the form are sent as an argument to the callback function that was passed as props from Board to NewCardForm. That argument (in the form of an object) is used as the parameters that are packaged with the POST request sent to the API. The API responds back with the same values plus an ID, and then those values are put into a newly rendered Card component, passed as props.
What function did you use to make the GET request from the API to get the list of cards? Why use that function? componentDidMount, because once the component is mounted it can immediately be filled in with data from the API.
How do snapshot tests differ from unit tests? They're only testing the top layer of one component - they're shallow, instead of "deep." They're more like model tests instead of unit tests because they're only testing one small part of the app, not the whole thing.
What purpose does Enzyme serve in testing a React app? Enzyme allows shallow 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