{
toEmail.length ? (
<TagInputHere
initialValue={toEmail}
/>
) : (
<TagInputHere
/>
)
}
so in above code, the componentDidMount is not getting called when the condition is true, instead componentDidUpdate is getting called.