you canNot render component onClick of onother component you should set the item that you want to show in state, then pass it to that component using

change this line

<button onClick={<Graph tid={developer.tid}/>}>Data</button>


    onClick={() => this.setState({

so now if you click on the button, it will set developer id in state of component

and in render method after closing tag of table put this

{!!selectedDeveloperId && (<Graph tid={selectedDeveloperId}/>)}

so it will render Grap component if you click on a button with id of selected developer

Related Query

More Query from same tag