title: Objects are not valid as a React child - Cannot resolve error
body: <p>I have the following code:</p>
  <pre><code>import React, { useEffect, useState } from &quot;react&quot;;
  import &quot;./styles.css&quot;;
  
  function Test() {
    const [Movie, setMovies] = useState([]);
  
  
    useEffect(() =&gt; {
      fetch(
        `https://api.themoviedb.org/3/discover/movie?api_key=${APP_KEY_MOVIE}&amp;language=en-US&amp;sort_by=popularity.desc&amp;include_adult=false&amp;include_video=false&amp;page=1`
      )
        .then((response) =&gt; response.json())
        .then((data) =&gt; {
          console.log(data);
          setMovies(data.results);
        })
        .catch((err) =&gt; console.error(err));
    });
    return (
      &lt;div className=&quot;App&quot;&gt;
        &lt;h6&gt;Some text here...&lt;/h6&gt;
      &lt;/div&gt;
    );
  }
  export default Test;
  </code></pre>
  <p>However, I keep getting the following console message and I'm not sure why because it's my first time using functional components with useState hook</p>
  <pre><code>Objects are not valid as a React child (found: object with keys {popularity, vote_count, video, poster_path, id, adult, backdrop_path, original_language, original_title, genre_ids, title, vote_average, overview, release_date}). If you meant to render a collection of children, use an array instead.
  </code></pre>
  <p>This is how the data that is returned is structured:</p>
  <pre><code>page: 1, total_results: 10000, total_pages: 500, results: Array(20)}
   page: 1
   total_results: 10000
   total_pages: 500
   results: Array(20)
    0: Object
    1: Object
    2: Object
    3: Object
    4: Object
    5: Object
    6: Object
    7: Object
    8: Object
    9: Object
    10: Object
    11: Object
    12: Object
    13: Object
    14: Object
    15: Object
    16: Object
    17: Object
    18: Object
    19: Object
  </code></pre>
  <p>I am pretty sure that the state can have an array of objects but I just don't know why this is happening. Please, any assistance is much appreciated!</p>