1

I was trying SSR for SEO purposes in my react app. Getting these errors (..which are not actual errors according to react).

first I got err in

componenDidMount=()=>

after commenting this

I got err in

state={}

enter image description here

enter image description here

Raxel21
  • 407
  • 2
  • 9
anuj bhatt
  • 11
  • 1

1 Answers1

0

You have a syntax error.
change this:

componentDidMount=()=>{}
state={};

to this:

componentDidMount() {

}
this.state = {}

In case it doesn't work, take a look

Raxel21
  • 407
  • 2
  • 9