【发布时间】:2021-06-28 20:58:10
【问题描述】:
./src/pages/profile/Profile.jsx
Syntax error: Unexpected token (24:5)
22 |
23 | return (
> 24 | <>
| ^
25 | <Topbar />
26 | <div className="profile">
27 | <Sidebar />
<>
...
</>
以上实际上是有效的 JSX 语法,为什么它不能给我一个编译错误?
【问题讨论】:
-
什么版本的反应?
-
您的构建管道是什么样的?