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>

    )

  }

}   

猜你喜欢

转载自www.cnblogs.com/GongYaLei/p/9779578.html