I have a React/Redux App and a component.
Unfortunately I have to use a third party library that needs to trigger functions from within the React app.
class Account extends React.Component {
  doSomething(){
    // Do react things
  }
  render{
    return()
  }
}
And now I have some HTML that I have limited control over, being inserted in to the DOM. This is not an iFrame.
<button onClick="doSomething()">interact with react</button>
Is there any way I can trigger the doSomething() method from outside of React? Something likeReactApp.Account.doSomething()is what I need.
 
     
    