Rev 4189 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
import axios from 'axios'
import React from 'react'
import { useEffect } from 'react'
const EventsList = () => {
const getEvents = async () => {
try {
const { data: response } = await axios.get('/helpers/next-events')
console.log(response)
} catch (error) {
console.log(error)
}
}
useEffect(() => {
getEvents()
}, [])
return (
<div>EventsList</div>
)
}
export default EventsList