I spend the last few days trying to create a comunication between a Component and the main Application. My goal is to create for every State a individual component. Something like this:
I needed to tell the main application to change the State when the user clicked on the button on the component.
This is the final [...]