Reputation: 67
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.
Upvotes: 0
Views: 63
Reputation: 1423
You need to use query from state like this
${this.state.query}
Upvotes: 2