Fetch the endpoint provided below to retrieve blogs with pagination and set limit,By default the limit of blog per page is 8 you can increase or decrease it and also test it here. Once you’ve fetched the endpoint, you can explore the array of blogs it returns. If you encounter any issues or have any questions, don't hesitate to reach out for assistance. Happy exploring!
fetch('https://dummyblogapi.vercel.app/api/blog?page=1&limit=4')
.then(res => res.json())
.then(json => console.log(json))
fetch('https://dummyblogapi.vercel.app/api/blog?page=1&limit=4')
.then(res => res.json())
.then(json => console.log(json))