React - expressions must have one parent element?

后端 未结 7 1404
再見小時候
再見小時候 2020-11-30 02:02

I\'m relatively new to React and I\'m wondering what\'s the standard here.

Imagine I have a react-router like this one:



        
相关标签:
7条回答
  • 2020-11-30 03:08

    This one works for me.

    <React.Fragment> …….. </React.Fragment>

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