How to get all the blogs

Fetch the endpoint provided below to retrieve all the blogs, 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!

Get All Blogs

Copy code

fetch('https://dummyblogapi.vercel.app/api/all')
.then(res => res.json())
.then(json => console.log(json))