Handling error cases in fetch javascript
Problem with default fetch
In js, the default way to make an API call is to use fetch and the default syntax goes something like this.
async function getTodos({title, id}) {
let url = 'https://jsonplaceholder.typicode.com/todos'
if(title){
...
blogs.dreamerchandra.com3 min read