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 - Shubha #43

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

Sockets - Shubha #43

wants to merge 6 commits into from

Conversation

shubha-rajan
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 data is passed from the form to the board through a callback in the form's props. It is then sent as a POST request from the Board component to create a new card. The Board then makes a GET request to update the cards in state and generate a new Card component with the data.
What function did you use to make the GET request from the API to get the list of cards? Why use that function? I created a getCards function which was called in componentDidMount. I used componentDidMount so that the rest of the App could load without waiting for Axios to load data.
How do snapshot tests differ from unit tests? Unit tests make sure each piece of a page renders correctly while snapshot tests check for changes in a page's rendering by comparing changes in a json file that holds a "snapshot" of the significant features of the component
What purpose does Enzyme serve in testing a React app? Enzyme is a library that can select, render, and manipulate the DOM to help with 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