-1

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.

Jak2k
  • 57
  • 1
  • 7

1 Answers1

3

You forgot to put = between to prop and its value

xijdk
  • 450
  • 4
  • 8