GoConqr has a new look! Let us know what you think.

Module 16 of 18 · Media

Withdrawing and Finalizing the project

Kostas Diakogiannis

Withdrawing and Finalizing the project

Finalizing and withdrawing

By applying exactly the same functionality we did for making a deposit, we create another component, dispatch it's withdraw prop to the withdrawAction and return out of it a new container component, which will be put inside the App component's render function exactly as the code shows above. 

Be careful not to name your functions the same if they are inside the same file.

At the end of it anything should work and you should have two buttons, that each either adds or subtracts from the total balance. Without any local state and without caring about the component's parent-child-sibling hierarchy structure. Good Job!

At the end the result should be something like that.

Instructions

You must submit an attempt for this quiz to progress. You can submit it after the last question.

Go to the chosen module

Feedback

What is it about?

What do you think of the new look?

How do you like it?