React unxepted token '<' error

i don’t understand where i did my error…
can someone help me please ?
A Pen by Dylan (codepen.io)

You get that error when you do not turn on Babel with JSX on Codepen. I’m guessing they fixed it.

this.state.push(quotes)

state is not an array, quote is the array.

1 Like

i turn my JS on babel and now it work , you were right.thanks

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.