I want to save the content in a variable depending on the result of an if statement. But when I add multiple lines it doesn't work.
let content = null
if(this.props.group.name != null){
content = <Text>Just this line works</Text>
<Text>This doesn't work</Text>
}
I can't find out what to do. I can't add + at the end of the line like in Javascript.
content = <Text>Just this line works</Text> <Text>This doesn't work</Text>