axios.get("api/blogs/" + this.state.pageIndex + "/10").then(res => { res.filter(function(author) { return author.firstName === this.state.query; }); });