const previewPosts = findPosts.slice(0, 3);
if (!userFind) {
return <>Loading...</>;
}
return (
let formData = new FormData(formElement);
fetch("/pushworker", {
body: formData,
headers: {
"Content-Type": "multipart/form-data",
},
method: "POST",
}).then((data) => console.log(data));
methodClick(index) {
this.props.currentPage(index)
axios.get(`https://social-network.samuraijs.com/api/1.0/users?page${index}=&count=7`).then(response => {
this.props.setUsers(response.data.items)
})
}
methodClick = (index) => {
this.props.currentPage(index)
axios.get(`https://social-network.samuraijs.com/api/1.0/users?page${index}=&count=7`).then(response => {
this.props.setUsers(response.data.items)
})
}
type TGetCategoryArgs = ...
type TUpdateCategoryArgs = ...