码迷,mamicode.com
首页 > 其他好文 > 详细

React.Fragment 的作用:代替div作为外层

时间:2018-07-12 10:31:39      阅读:569      评论:0      收藏:0      [点我收藏+]

标签:https   span   技术   技术部   fragment   .com   pre   bsp   体验   

https://segmentfault.com/a/1190000013220508

 

import React, { Fragment } from ‘react‘;

<Fragment>
       Copyright <Icon type="copyright" /> 2018 蚂蚁金服体验技术部出品
</Fragment>

 

React.Fragment 的作用:代替div作为外层

标签:https   span   技术   技术部   fragment   .com   pre   bsp   体验   

原文地址:https://www.cnblogs.com/CyLee/p/9297920.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!