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

Leaves - Georgina #24

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

Leaves - Georgina #24

wants to merge 7 commits into from

Conversation

geomsb
Copy link

@geomsb geomsb commented Dec 16, 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? We get the input from the user, the onFormChange method is called and it'll change the state of the form (text and emoji). The user click on add a card button and it will call the onSubmit method, this method will do a callback to addCard and then is going to reset the state. Once addCardCallback is called, the method is posting a new card.
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 the componentDidMount function because this function is used to load in our external data.
How do snapshot tests differ from unit tests? Because snapshot tests simulate how end-users see the React App.
What purpose does Enzyme serve in testing a React app? The purpose is to test something related to the lifecycle or to prove that everything is rendering properly.

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