import { useEffect, useState } from 'react' import movieApi from '../apis/movie.api.js' const Video = (props) => { const [videoUrls, setVideoUrls] = useState([]) useEffect(() => { getVideos() }, []) async function getVideos() { try { const data = await movieApi.getVideosfromTM(props.movieId) setVideoUrls(data) } catch (error) { console.log(error) } } return (
{el.name}