so i'm working on a movie app using TheMovieDb API and the problem is that when I request Trending movies the genre of each movie is just an id and to get the genre text I have to make another request to get all genres and then get the name of the genres from the second request,so my question is how to do it because I tried but I'm stuck right now
// I called each request in useEffect separately
`<div className={classes.SliderContainer}>
 <Slider {...settings}> 
   {movies.map((movie) => ( 
     <HomeSlider 
        genre={genres[movie.id]} // here's my lastest try but it didn't work 
        src={ImgUrl(movie.backdrop_path)} 
        title={movie.title}     
        key={movie.id} 
        rating={movie.vote_average} />   
   ))}  
 </Slider> 
</div>`
 
    