title: React - error result map is not a function?
body: <ul>
  <li>Framework: React</li>
  <li>Error type: result.map is not a function</li>
  </ul>
  <p>I am following the book Road to learn React, I tried the below code with hacker news API it worked well but it is not working with this API. I don't know why I'm getting this error, please help.</p>
  <p>Link to my sandbox --&gt; <a href="https://codesandbox.io/s/react-setup-forked-q0hti?file=/src/App.js" rel="nofollow noreferrer">https://codesandbox.io/s/react-setup-forked-q0hti?file=/src/App.js</a></p>
  <pre class="lang-js prettyprint-override"><code>import React, { Component } from &quot;react&quot;;
      
  // API chunks
  const PATH_BASE = &quot;https://jsonplaceholder.typicode.com/todos&quot;;
  const PATH_SEARCH = &quot;/search&quot;;
  const PARAM_SEARCH = &quot;query=&quot;;
  const DEFAULT_QUERY = &quot;redux&quot;;
      
  //const url = `${PATH_BASE}${PATH_SEARCH}?${PARAM_SEARCH}${DEFAULT_QUERY}`;
  //console.log(url);
      
  class App extends Component {
    constructor() {
      super();
      this.state = {
        result: null
      };
      this.hitStories = this.hitStories.bind(this);
    }
     
    // handling the local state value
    hitStories(result) {
      this.setState({
        result
      });
    }
      
    // lifecycle method
    // Note: componenetDidMount runs after the render method
    componentDidMount() {
      fetch(`${PATH_BASE}${PATH_SEARCH}?${PARAM_SEARCH}${DEFAULT_QUERY}`)
        .then((response) =&gt; response.json())
        .then((json_result) =&gt; this.hitStories(json_result))
        .catch((error) =&gt; error);
    }
  
    render() {
      console.log(this.state)
      const { result } = this.state;
  
      if (!result) {
        return null;
      }
      
      return (
        &lt;div&gt;
          &lt;h2&gt;Fetch API in React&lt;/h2&gt;
          {result.map((
            item 
          ) =&gt; (
           &lt;div&gt;
             {item.title}
            &lt;/div&gt;
          ))}
        &lt;/div&gt;
      );
    }
  }
      
  export default App;
  </code></pre>