Fragments giving Unexpected token error in React 16.2

前端 未结 1 604
离开以前
离开以前 2021-01-03 18:44

I have the following component that renders a series of components. However, I downloaded React 16.2 and tried to use fragments instead of divs, but I get the following erro

1条回答
  •  长发绾君心
    2021-01-03 19:06

    As per the documentation, the syntax <> is not supported by all tools and they encourage you to use instead

    Check this documentation on Support for Fragment syntax

    0 讨论(0)
提交回复
热议问题