0

enter image description here

I'm having issue on the line 24. If I try to declare "query" the same way as on the line 13, warning disappears, but later when I call the function it passes "underfined" there.

enter image description here

1 Answers1

2

You need to use query from state like this

${this.state.query}
Lahcen
  • 1,231
  • 11
  • 15