$('#blog').click(function(){
if ($('.header-search').hasClass('show')) {
$('.header-search').removeClass('show');
}
})
($('.header-search').hasClass('show'))
.tabs {
display: flex;
flex-direction: column;
width: 100%;
}
.tabs__item {
width: 80%;
}
useEffect(() => async () => {
const response = await axios.get(URL)
setUsers(response.users)
})
useEffect(() => {
const fetchData = async () => {
const response = await axios.get(URL);
setUsers(response.users);
};
fetchData();
}, []);