I react, have this:
return (
<p title={ 'name' }> TEST </p>
)
And I want to do an if statement within the return. I tested this:
return (
<p title={ 'name' }> TEST </p>
if (variable) {
<p> hello </p>
} else {
<p> world </p>
}
)
Obviously, I have no idea what I'm doing. What's the correct approach? Sorry about the entry-level question.