I have a react spa created with create-react-app. I also have a custom react component which I install via npm and use in the react spa I have no issue calling a function from a button click in the spa that will trigger an event on a map and return say and Id. My issue is that I also need an even to say click a modal in the custom component which will then let me read the state back to the spa to set a dropdown. Does anyone have ideas what the best approach to this might be. Thanks.