Reputation: 23
I just want to test to validate using If... else if condition
Here is the peace of code to test the condition, mylists.Title returns the SP lists,
if({mylists.Title} === {'Documents'})
{
<span>{'Good morning'}</span>
} else
{
<span>{'Good Evening'}</span>
}
but its considering like a normal text
I know that i am just checking very simple condition only but really don`t understand here why its considering as normal string
Please assist me here how to validate using if ...else if condition over TSX file
Upvotes: 0
Views: 39