score:0

Seems like the problem is not in this component. According to the error, you are passing into JSX some object (found: an object with keys {popularity, vote_count, ... ). You cant pass plain objects into JSX. Try to verify where you are passing some data into JSX and verify its type. Only strings, numbers, null, boolean, and arrays are allowed, but elements of array should be ReactNode or some primitives

score:0

try this to return an array of objects

useEffect(() => {
fetch(
  `https://api.themoviedb.org/3/discover/movie? 
   api_key=${APP_KEY_MOVIE}&language=en- 
   US&sort_by=popularity.desc&include_adult=false&include_video=false&page=1`
)
  .then((response) => response.json())
  .then((data) => {
     let res = data.result
     res = res.map(item => {
        const { ...release_date} = item 
     return {...release_date}
     })
    
    setMovies(res);
    console.log(Movies);
  })
  .catch((err) => console.error(err));
},[]);

Related Query

More Query from same tag