I am learning react and I am trying to call a class from a method. Here is what I have came up so far
class Pop extends React.Component{
  render(){
    return (
      <div>
        <button onClick={() => { this.desit("data")} }>Componant Caller</button>
      </div>
    )
  }  
  desit(data){
    <Test info={data}/> 
  }  
}
class Test extends React.Component{
  render(){
    return 
    <div>{alert(this.props.info)}</div>
  }
}
ReactDOM.render(<Pop />,document.getElementById("targ"));
Help please?
 
    