ps
Size: a a a
ps
ps
VK
ps
VK
ps
MK
VK
VK
AG
VK
ps
AG
VK
AG
АК
useEffect(() => {
function getBlock() {
axiosaxios.get(
URLsURLs.BASE_URL +
URLsURLs.BLOCK, { headers: authHeader() })
.then(res => {
consoleconsole.log(res);
getBlockDate(res.data);
})
.catch(err => {
consoleconsole.log(err);
})
}
const interval = setInterval(() => getBlock(), 5000);
return () => {
clearInterval(interval);
}
}, []);
t
MK
НГ