import React, { useEffect, useState } from 'react'; import { InputText } from 'primereact/inputtext'; import { Button } from 'primereact/button'; import { DataTable } from 'primereact/datatable'; import { Column } from 'primereact/column'; const Communities = () => { const [communitiesList, setCommunitiesList] = useState([]); const [housesList, setHousesList] = useState([]); async function getCommunites() { let response = await fetch('http://localhost:4000/community/allCommunities', { method: 'GET' }); let list = await response.json(); setCommunitiesList(list.message); } useEffect(() => { getCommunites(); }, []) return (
Administradores de comunidad
) } export default React.memo(Communities);