class Game extends Component { constructor() { super() this.state = { speed: 0 } //firebaseInit() } render() { return (
I encountered the same error, with the below code.
return this.state.employees.map((employee) => { {employee.name} });
Above issue got resolved, when I changed curly braces to parenthesis, as indicated in the below modified code snippet.
return this.state.employees.map((employee) => ( {employee.name} ));