Answers for "limit data with axios in react js"

0

limit data with axios in react js

componentDidMount() {
  axios.get('https://jsonplaceholder.typicode.com/todos',{
    params: {
      _limit: 10
     }
  })
    .then((res) => {
      this.setState({
        todos: res.data
      });
    })
}
Posted by: Guest on April-27-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language