PubSub - EventEmitter should be removed from all components
Why? To create a clean code without external dependencies or Events on click / touch / etc + easy communication between components.
How? Wrap the components into a custom component to change the props from a component to another.
E.g.: Use the components Button + Dialog, wrap them into a custom component ButtonDialog, use the event onClick from the Button and change the Dialogprops.
PubSub - EventEmitter should be removed from all components
E.g.: Use the components Button + Dialog, wrap them into a custom component ButtonDialog, use the event
onClick
from the Button and change the Dialogprops
.