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

Ports - Sopheary #29

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

Ports - Sopheary #29

wants to merge 6 commits into from

Conversation

sophearychiv
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? When user enters the input in the form, the onInputChange function captures the input value and update the NewCardForm's states. When user clicks on 'submit' the new card, the addCard function is called and in return calls the addCardCallback function, which is the NewCardForm component's prop. The addCardBallback, then, calls the addCard function in the Board component, which makes a post request to create a new card to the API.
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 componentDidMount function because I needed to get the data from the API before the user can see it in the browser.
How do snapshot tests differ from unit tests? Snapshot tests are to test the structures without writing much code, whereas unit tests are to test functionalities of the components.
What purpose does Enzyme serve in testing a React app? To write shallow or deep tests.

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