ReactJS – Call One Component Method From Another Component
You can do something like this import React from ‘react’; class Header extends React.Component { constructor() { super(); } checkClick(e, notyId) { alert(notyId); } render() { return ( <PopupOver func ={this.checkClick } /> ) } }; class PopupOver extends React.Component { constructor(props) { super(props); this.props.func(this, 1234); } render() { return ( <div className=”displayinline col-md-12 “> … Read more