Call React Parent component function from outside of the Child Component Class
问题 Typically I do the following types of things from a Parent component this.childZ = React.createRef(); // this.handleTabs = this.handleTabs.bind(this); // bind a function //Actual function in the parent class component handleTabs = () => { ...} // I want to call this from Child Component - but outside the class (i have 3rd party javascript etc.. //In my render() <Tab eventKey={19} title="CORE SEC Z."><SectionZ ref={(secZComponent) => {window.secZComponent.handleTabs() = secZComponent}}