显示和隐藏组件

显示和隐藏组件

<View>
	{showIt && <Text>显示</Test>}
</View>

{isShow ? <div className='show'/>}

对于隐藏的组件,最好unmount掉

发布了13 篇原创文章 · 获赞 0 · 访问量 2618

猜你喜欢

转载自blog.csdn.net/qq_43673344/article/details/90602336
今日推荐