Fragments的短语法,其不占用dom节点,https://zh-hans.reactjs.org/docs/fragments.html#gatsby-focus-wrapper

class Columns extends React.Component {
  render() {
    return (
      <>
        <td>Hello</td>
        <td>World</td>
      </>
    );
  }
}

  

相关文章:

  • 2022-12-23
  • 2021-07-29
  • 2021-06-10
  • 2021-06-14
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
  • 2021-09-15
猜你喜欢
  • 2022-12-23
  • 2022-01-12
  • 2021-12-04
  • 2021-06-23
  • 2021-04-02
  • 2021-09-18
相关资源
相似解决方案