title: Rest API call from REACT APP always return isLoaded: false
body: <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import React from 'react';
  import './App.css';
  
  class App extends React.Component {
    constructor(props) {
      super(props);
      this.state = {
        error: null,
        items: [],
        isLoaded: false
      };
    }
  
    callAPI() {
      fetch("http://localhost:4000/api/process/4570")
        .then(res =&gt; res.json())
        .then(
          (result) =&gt; {
            this.setState({
              isLoaded: true,
              items: result.items
            });
          },
          // Note: it's important to handle errors here
          // instead of a catch() block so that we don't swallow
          // exceptions from actual bugs in components.
          (error) =&gt; {
            this.setState({
              isLoaded: false,
              error
            });
          }
        )
    }
  
    componetDidMount() {
      this.callAPI();
    }
  
  
    render() {
      var { error, isLoaded, items } = this.state;
      if (error) {
        return &lt;div&gt;Error: {error.message}&lt;/div&gt;;
      } else if (!isLoaded) {
        return &lt;div&gt;Loading...&lt;/div&gt;;
      }
      else {
  
        return (
          &lt;div className="App"&gt;
            &lt;ul&gt;
              {items.map(item =&gt; (
                &lt;li key={item.id} &gt;
                  Id: {item.id} | Name: {item.name}
                &lt;/li&gt;
              ))}
            &lt;/ul&gt;
          &lt;/div&gt;
        );
      }
    }
  }
  export default App;</code></pre>
  </div>
  </div>
  </p>
  <p>console: no error.
  react-developer-tool: returns
  state=
  {
  &quot;error&quot;: null,
  &quot;items&quot;: [],
  &quot;isLoaded&quot;: false
  }</p>
  <p>I am very new to REACT and APIs. Please guide me through, what mistake i have done here. I am unable to get the API output.
  I am always getting &quot;Loading&quot;</p>
  <p>The API does return the json:
  {&quot;id&quot;:&quot;4570&quot;,&quot;name&quot;:&quot;AR_RESUME_CNC_ROUTING&quot;}</p>