Skip to content

Sockets - Nidhi#23

Open
nidhiparixitpatel wants to merge 12 commits intoAda-C11:masterfrom
nidhiparixitpatel:master
Open

Sockets - Nidhi#23
nidhiparixitpatel wants to merge 12 commits intoAda-C11:masterfrom
nidhiparixitpatel:master

Conversation

@nidhiparixitpatel
Copy link
Copy Markdown

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? Data is typed into the form which keeps track of the input in Card component. On hitting the submit button, a callback function in card component sends this data to a function in the board component that adds the card to the api and to list of cards in the state in the board component which then renders it on the page.
What function did you use to make the GET request from the API to get the list of cards? Why use that function? I used a get request to get the json with the list of cards and used set state to make this list of cards the cards the component keeps track of.
How do snapshot tests differ from unit tests? Snapshots only test the component alone and not its interaction with other components.
What purpose does Enzyme serve in testing a React app? Enzyme uses shallow and deep rendering to test components in React without actually 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