let {postDetail} = useParams();
const url = `https://jsonplaceholder.typicode.com/posts/${postDetail}`;
const [details, setDetails] = useState([]);
useEffect(()=>{
fetch(url)
.then(res => res.json())
.then(data => {
setDetails(data => [...data, {"image":`${data.id}`}]);
})
},[]);
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)