I have a dumb question of React Components
a. I could do react component creation by using State to control:
{
is_active ? (
<div>...</div>
) : null
}
b. I could also insert opacity transitions, reference: React fade in element
c. But how do I combine (a) & (b) into 1. fade in while is_active = true 2. fade out while is_active = false
Is there an easy way to do it?