Call external Javascript function from react components
<p>Im not sure if this has been asked before or anybody has encountered the same issue on reactjs. So the scenario is like this, I have an <em>index.html</em> file that includes some javascript. Now on my react component, I have a condition that will render only if the condition is true. This means that initially when my page loaded the component has not been rendered yet. When I toggle a button this is where that component gets rendered. That child component needs to call a javascript method that was included on my index.html. How should I do this?</p>

<p>Any help is greatly appreciated.</p>