import React, { useState, useEffect } from 'react' import axios from 'axios' import styles from "./ticketingMovie.module.scss" const TicketingMovie = (props) => { const [movieList, setMovieList] = useState([]) const [state, setState] = useState(0) useEffect(() => { getMovieList() }, []) async function getMovieList() { try { const response = await axios.get(`/api/movie/movielist`) console.log(response.data) setMovieList(response.data) } catch (error) { } } return (
) } export default TicketingMovie