title: How to send HTTP headers in ReactJS using fetch()
body: <pre><code>const URL = "http://url.com";
  fetch(URL).then(res =&gt; res.json()).then(json =&gt; {
      this.setState({ someData: json });
  });
  </code></pre>
  
  <p>How to send HTTP request with HTTP headers?</p>