axios.filter
axios.get("api/blogs/" + this.state.pageIndex + "/10").then(res => {
res.filter(function(author) {
return author.firstName === this.state.query;
});
});
axios.filter
axios.get("api/blogs/" + this.state.pageIndex + "/10").then(res => {
res.filter(function(author) {
return author.firstName === this.state.query;
});
});
how to use axios filter
// Will return all the posts that belong to the first user
fetch('https://jsonplaceholder.typicode.com/posts?userId=1')
.then(response => response.json())
.then(json => console.log(json))
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us