title: Cannot read properties of undefined (reading 'map') with REST response
body: <p>I'm novice in React and have problem with <code>map</code>.
  My react component</p>
  <pre><code>const NewsComponent = () =&gt; {
  const params = useParams()
  const pk = params.pk
  const [news, setNews] = useState([])
  
  useEffect(() =&gt;{
      const getNews = async() =&gt; {
          await httpClient.get(`/feed/${pk}`)
              .then((response) =&gt; {
                  setNews(response.data);
              })
      }
      getNews();
  }, [])
  
  return(
      &lt;div&gt;
          {news.results.map((post, index) =&gt;(
              &lt;div&gt;
                  &lt;h1&gt;{post}&lt;/h1&gt;
              &lt;/div&gt;
          ))}
      &lt;/div&gt;
  )
  }
  </code></pre>
  <p>My response from backend:</p>
  <pre><code>{
      &quot;count&quot;: 1,
      &quot;next&quot;: null,
      &quot;previous&quot;: null,
      &quot;results&quot;: [
          {
              &quot;title&quot;: &quot;asdasd&quot;,
              &quot;text&quot;: &quot;asdasdasd&quot;,
              &quot;likes&quot;: [],
              &quot;dislikes&quot;: [],
              &quot;attachments&quot;: []
          }
      ]
  }
  </code></pre>
  <p>But it doesn't work.</p>