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 - Faiza #41

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

Ports - Faiza #41

wants to merge 7 commits into from

Conversation

Faiza1987
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 the submit button on the form is clicked, it triggers the AddCard function is Board which is passed down as a prop to NewCardForm component which catches it in a callback, and updates the state (adding the new info to the cards array and displaying 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 componentDidMount because I needed a list of cards already displaying on my page when the page loads the first time. In componendDidMount I used axios.get to get the list of cards from my board from the API.
How do snapshot tests differ from unit tests? Snapshot tests test views. That take a snapshot of a component and what its HTML is, and then compares the resulting HTML of the component to the snapshot it took before.
What purpose does Enzyme serve in testing a React app? Enzyme is a testing library that provides syntax.

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