title: How to make AJAX GET request on the client to external site with React
body: <p>Hello I'm new to React and I am trying to make an AJAX GET request to an external API. However, the URL I add is being prepended with my host. Please let me know if I am doing something off. Below is my code.</p>
  
  <pre><code>$.ajax({
    type: 'GET',
    url: 'http://www.someapi.com/?i='+someId,
    async: false,
    dataType: 'json',
    success: function(data) {
      this.setState({data: data});
    }.bind(this),
    error: function(e) {
       console.log('error', e);
    }
  });
  </code></pre>
  
  <p>The GET request is being sent to <code>localhost:3000/http://www.someapi.com/?i=1</code></p>