I'm new in reactJs I want to return a HTML code from a function
changeValue= (e) =>{
if(e.target.value=="Albania"){
return(
<select>
<option>1</option>
<option>2</option>
</select>
)
}
}
render (){
return(
<select onChange= {this.changeValue}>
{country}
</select>
)
}
}
when I change the select option to Albania the options 1,2 don't show
thank you.