日日行,不怕千万里

React.Fragment 组件没有必要的多层嵌套,外层不需要过多嵌套

import  React , { PureComponent } from "react";

export default  class  Abc  extends PureCompoent {

  constructor(props) { 

    super(props);

   }

  render() {

    return (

      <React.Frament>

        <div>12346</div>

        125456

      </React.Frament>

    )

  }

}   

 

posted @ 2018-10-12 17:49  GongXiaoZhu  阅读(437)  评论(0编辑  收藏  举报