Error: error: Expected ‘,‘, got ‘className‘ in nextjs
作者:互联网
Error: error: Expected ‘,’, got ‘className’ in nextjs
原因:
ReactJS doesn’t allow 2 parent elements, make sure to use a div as parent element
return (
<div>
<Head>
...
</Head>
<form>
...
</form>
</div>
)
标签:...,parent,Error,className,nextjs,error 来源: https://blog.csdn.net/buyueliuying/article/details/123579710