I am trying to write a nested IF ELSE condition in JSX but its not working. Can anyone please help how to write the below condition in JSX?
if (content) {
if (content.flag) {
<showSomeComponent />
}else if (!content.flag) {
<showSomeOtherComponent />
}
}
Thanks in advance.