Rev 4830 | Rev 4839 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
import axios from 'axios'
import React, { useEffect } from 'react'
const CompanySizesView = ({ urlsVar }) => {
const { urlAdd, urlTable, urlDashboard } = urlsVar
const getTable = async () => {
const resp = await axios.get(urlTable)
return resp.data
}
const getDashboard = async () => {
const resp = axios.get(urlDashboard)
return resp.data
}
useEffect(() => {
Promise.all([getTable(), getDashboard()])
.then(resp => console.log(resp))
}, []);
return (
<div>CompanySizes</div>
)
}
export default CompanySizesView