Skip to content

Time - Mair H & Denisse A#10

Open
mheshmati-tech wants to merge 14 commits into
Ada-C13:masterfrom
mheshmati-tech:master
Open

Time - Mair H & Denisse A#10
mheshmati-tech wants to merge 14 commits into
Ada-C13:masterfrom
mheshmati-tech:master

Conversation

@mheshmati-tech

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? Board makes the API call, returns the result to Card for each Card to be rendered on the page. Alongside data, Board will send event handling functions to its child components Card and NewCardFormat and each child component will use those call back event handling functions to add and remove cards. The event handling functions use API and useState to update the state of the board.
What function did you use to make the GET request from the API to get the list of cards? Why use that function? We used the useEffect to tap into the life cycle of the component- this will make sure that something will render while waiting for the API call to made.
How do snapshot tests differ from unit tests? They are similar but snapshots are neat due to them checking for changes when rendering.
What purpose does Enzyme serve in testing a React app? This wasn't discussed in the classroom but from we have gathered from online it makes it easier to test a Component's output.

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.

2 participants