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 - Riyo #22

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

Sockets - Riyo #22

wants to merge 4 commits into from

Conversation

RPerry
Copy link

@RPerry RPerry commented Jun 24, 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? After submit is clicked, the onFormSubmit function calls the addCardCallback function which posts the form input data to the API. The Board cards state is updated with the new card which is displayed on the board.
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 the page should render first before the GET request is sent to the API.
How do snapshot tests differ from unit tests? Snapshots test the UI and parts that the user interacts with.
What purpose does Enzyme serve in testing a React app? It's a library for for selecting, rendering and manipulating the DOM.

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