import { useState, useEffect } from "react" import { Link } from 'react-router-dom' import styles from './movie-card.module.scss' const MovieCard = ({ list }) => { const [movieList, setMovieList] = useState(list) useEffect(() => { setMovieList(list) }, [list]) return ( <> {movieList.map(movie => (
예매율: {movie.ticket_sales}0% | {movie.runtime}분
{movie.release_date} 개봉