组件最外层div不渲染,用React.Fragment替换

使用解构赋值,直接拿到Fragment组件,可以直接用Fragment代替React.Fragment

猜你喜欢

转载自blog.csdn.net/aliven1/article/details/88060586