简体   繁体   English

意外的令牌,预期的“...”

[英]Unexpected token, expected "..."

I got the error: Unexpected token, expected "..."我收到错误: Unexpected token, expected "..."

I use react unstated.我使用未说明的反应。

My code:我的代码:

 return (
      <Subscribe to {[ChatContainer]}>
        {chatProvider => (
          <>
            Hello World
          </>
        )
        }
      </Subscribe>
    )

I could find solutions for expected ";"我可以找到expected ";"的解决方案but not for this.但不是为了这个。

You forgot to put = between to prop and its value你忘了把= to prop 和它的值之间

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM