I'm still new to React and having a hard time trying to figure out how to show div element content if props return true. I know I can only return one render in a function but how can I achieve this. Can I write some type Jsx inline if statement?
<div>if true show</div>
<div>if true show</div>
<div>false don't show</div>
<div>if true show</div>
Update: I actually used
{this.props.test === true &&
<div>if true show</div>
}