Need help with Codepen and React

Need help with Codepen and React
0.0 0

#1

Hi,

I’m building the Game of life. And I’ve faced the unknown issue in my code (“Unexpected token =”). I can’t figure out what the problem is. Here is my code - http://codepen.io/tukhtarov/pen/EWpLJd. Please, help.


#2

Remove = and => on line 31.
Fix div on line 50.
In JS settings make React first and ReactDOM second.


#3

Thanks. But why does not an arrow function syntax work?


#4

Because it’s not correct ES6 syntax (Classes docs)