Why does React need an enclosing tag to return multiple sibling elements?

前端 未结 0 658
遥遥无期
遥遥无期 2021-02-04 13:02

So while it is known that adjacent JSX elements must be wrapped in an enclosing tag. I haven\'t been able to find the reason behind that. Why does React enforce that behavior ?<

相关标签:
回答
  • 消灭零回复
提交回复
热议问题