title: React : Uncaught (in promise) Error: Request failed with status code 400
body: <p>I am using ReactJS, I want to create pagination for my application . When I click on next button I got this error <code>Uncaught (in promise) Error: Request failed with status code 400</code> . I am fetching page data through API which were built in Loopback.  Can someone please help me how to solve this problem because I am new and didn't much know about ReactJS</p>
  
  <p><strong>Code</strong></p>
  
  <pre><code>        class Example extends React.Component {
    constructor(props) {
      super(props);
  
      this.state = {
        Item: 5,
        skip: 0
      }
  
      this.handleClick = this.handleClick.bind(this);
    }
  
    urlParams() {
      return `http://localhost:3001/meetups?filter[limit]=${(this.state.Item)}&amp;&amp;filter[skip]=${this.state.skip}`
    }
  
    handleClick() {
      this.setState({skip: this.state.skip + 1})
    }
  
    render() {
      return (
        &lt;div&gt;
          &lt;a href={this.urlParams()}&gt;Example link&lt;/a&gt;
          &lt;pre&gt;{this.urlParams()}&lt;/pre&gt;
          &lt;button onClick={this.handleClick}&gt;Change link&lt;/button&gt;
        &lt;/div&gt;
      )
    }
  }
  
  
  ReactDOM.render(&lt;Example/&gt;, document.querySelector('div#my-example' ))
  </code></pre>