Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js

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.