Need help with Codepen and React


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 - Please, help.

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

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

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