import React, { useEffect, useState } from 'react'; import axiosInstance from '../api/axiosInstance'; const UsersList = () => { const [users, setUsers] = useState([]); useEffect(() => { axiosInstance.get('/users') .then(response => { setUsers(response.data); }) .catch(error => { console.error('There was an error fetching the users!', error); }); }, []); return (

Users List

); }; export default UsersList;