I have one
App which I reduced to the minimum as possible on the diagram below:
Side note: On this
App I use
Redux to manage state changes.
UploadScreenwith an image holder and a button. When that button is clicked, the user gets displayed a
Popup Windowwhich let him to pick an image from his device file system. Then that image is displayed on the image holder.
AuxWidgetwhich is a totally different component (needs to be separate) which also contains a button that when it is clicked it should popup the
Select Filewindow. I was thinking in something like triggering the click event of the first button.
Any idea on how to achieve that?
First I though about using
Redux but I think that's not a too good idea because even though you can send messages with it from one component to another, that causes a render update and I don't want that.
Also, I was thinking on using
jQuery but that's not the best approach when it comes to
Also, I thought about using the attribute:
ref="foo" to get a reference to the other component but I think that's normally done when you want the interaction to be between parent and child components.
Also, I was thinking about
EventEmmitter but I don't know if that's the best approach on this case (I'm using
Redux to manage the state changes between components).