import { useEffect, useState } from "react"; import { getEmployees } from "../services/api"; const Employees = () => { const [employeeList, setEmployeeList] = useState([]); useEffect(() => { getEmployees().then(res => setEmployeeList(res.data)) }, []); return (

Dolgozók

); }; export default Employees;