react uses
for conditional rendering.{
this.state.show ? <View/> : null
}
the content is rendered only when the condition is triggered, otherwise it is not rendered and is not controlled by display:none
.
at a time like this, how do you realize the transition animation if you need to do it?
during the attempt, it is found that the DOM will be displayed directly and skip the animation effect. -sharp-sharp-sharp problem description