i have a problem..

please help me.

i'm working react js

How do I send a state to a conditional react component?

```
this.state = {
 isTrue: false,
 name: undefined
}

handleClick(e){
 this.setState({
  isTrue: true,
  name: 'adwin'
 })
}

//////// render return ///////

{this.state.isTrue ? (
  <App2 name={this.state.name} />
 ) : ''
}

////// in App2 component //////
componentDidMount(){
 console.log(this.props.name)  //>>> it work undefined
}

```