I was looking the way to create in ReactJs similar output events like Angular.
I am making a library of components in ReactJs according to Atomic design, so, I have, for example, a Button injected in other component, and I would like to know how I could write a props for Button, so everytime the user press the button would launch this prop(a output in Angular way) to be detected in the parent where it was injected.
I don't want to use the State because I want that the components are fully independent.
Thanks in advance