使用解构赋值,直接拿到Fragment组件,可以直接用Fragment代替React.Fragment
组件最外层div不渲染,用React.Fragment替换
猜你喜欢
转载自blog.csdn.net/aliven1/article/details/88060586
今日推荐
周排行