Message from Parent Component is passed downward to Child. Count from Child Component is passed upward to Parent. This example demonstrates how to pass State both ways.
That’s the easiest way to show in one example how to pass State both ways between Parent and Child in React.js. A useful boilerplate to experiment with your own projects. Enjoy!