[官方博客] React v16.2.0: Improved Support for Fragments - React Blog

#1
render() {
  return (
    <Fragment>
      Some text.
      <h2>A heading</h2>
      More text.
      <h2>Another heading</h2>
      Even more text.
    </Fragment>
  );
}

有个语法糖:

render() {
  return (
    <>
      <ChildA />
      <ChildB />
      <ChildC />
    </>
  );
}
#2

然而,用了 <> 语法糖之后,各种 lint 工具都报错了,等着社区快速跟进呀