wrap your nodes in a <React.Fragment> (aka <></>) like below, you can return multiple, otherwise, only 1 root node can be returned
export default () => {
return <React.Fragment>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</React.Fragment>
}
or
export default () => {
return <>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</>
}
in earlier version which doesn't have React.Fragment, you need to create a HOC
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…