出乎意料的令牌,预期的“ ...”
我收到了错误:意外的令牌,预期“ ...”
我使用React未阐明。
我的代码:
return (
<Subscribe to {[ChatContainer]}>
{chatProvider => (
<>
Hello World
</>
)
}
</Subscribe>
)
我可以找到预期的解决方案“;”
,但不能找到。
I got the error: Unexpected token, expected "..."
I use react unstated.
My code:
return (
<Subscribe to {[ChatContainer]}>
{chatProvider => (
<>
Hello World
</>
)
}
</Subscribe>
)
I could find solutions for expected ";"
but not for this.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您忘了将
=
在之间放置为 prop及其值You forgot to put
=
betweento
prop and its value