class Game extends Component { constructor() { super() this.state = { speed: 0 } //firebaseInit() } render() { return (
Instead of
return ( The Score is {this.state.speed}; )
Use Below Code
return( The Score is {this.state.speed}; )
Basically use brace "(" in the same line of return like "return(". It will fix this issue. Thanks.