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.
CodePudding user response:
You need to use query from state like this
${this.state.query}