{chatProvider => ( <> Hello" /> {chatProvider => ( <> Hello" /> {chatProvider => ( <> Hello"/>

Unexpected token, expected "..."

100 Views Asked by At

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.

1

There are 1 best solutions below

0
xijdk On BEST ANSWER

You forgot to put = between to prop and its value