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.
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.
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?