I want to check for multiple nested conditions. Cant seems to figure out a way to do it. First check if fine and there are no issues with that, but after the first check, when i add second check and no matter which brace i use to wrap it still throws an error.
Sample code:
return (
<Fragment>
<div>
{ title }
</div>
<div>
{ check1 ?
(<p>
Status
</p>
{ check2 ?
<p>
<a >
desc </a> desc
</p> :
<a>
desc
</a>
}
)
:
{
check3 ?
<p>
<a>
anchor
</a>
desc
</p>
:
<p>
<a
anchor
</a>
desc
</p>
}
}
</div>
</Fragment>